搭建vps过程中的各种小问题

来源:互联网 发布:网络规划设计师 论文 编辑:程序博客网 时间:2024/05/21 04:41

1.wordpress搭建

安装插件时要求ftp账号密码.只要wordpress权限所属用户和apache的apache.conf配置文件里的user一致.就不会再进行ftp账号密码的验证,方便许多.

无论nginx还是apache,配置ServerName这个项要与服务器当前ip一致.

而且apache安装时,在sites-a..那个文件夹的default文件里没有ServerName,要自己手动在顶部加上.

ServerName www.xxx.com


2.nginx配置过程中

/etc/nginx/sites-avi../default 里的servername默认是localhost,导致在跳转www.xxx.com/qwe/时跳转到localhost/qwe/

,而跳转www.xxx.com/qwe/index.php可行。当把servername改为www.xxx.com时问题解决~

在/etc/nginx/nginx.conf

events {
    use   epoll;             #epoll是多路复用IO(I/O Multiplexing)中的一种方式,但是仅用于linux2.6以上内核,可以大大提高nginx的性能

}


3.在配置文件中加入ServerAdmin xxx@sina,com

服务器出错时,把错误信息传到此邮箱

Alias /icon/ /var/www/incons别名,简化路径


4.php.ini

将改为

ignore_repeated_source = on

ignore_repeated_errors = on忽略重复错误

不显示错误

display_errors = Off

display_startup_errors = Off


5.搭建svn服务器的问题

svnadmin create /xxx/xxx创建项目目录

svn import /var/www file:///xxx/xxx -m "import"把www的文件第一次导入进svn项目

更改/xxx/xxx/hook/post-commit.tmpl为post-commit。

里面的内容,在第一行加入

#!/bin/sh
export LANG=en_US.UTF-8
svn update /var/www


在/root/.subversion/servers里,更改两项为

store-passwords = yes
store-plaintext-passwords = yes

0 0
原创粉丝点击