4.访问http://www.cxy.cc/install.php 按提示数据数据库信息,即可完成安装。
5.一些常见问题的解决
(1)安装完typecho只有首页能访问,访问其它页页面报404错误。
问题在于typecho需要pathinfo功能,nginx需要配置才能支持此功能,解决办法见第二步。
一般的出现这种情况时,nginx.conf里的的location设置都是类似这样
location ~ .*\.php$
要支持pathinfo,要改成
location ~ .*\.php(\/.*)*$
在某些老版本的php里面,可能还要打开php.ini里的cgi.fix_pathinfo
cgi.fix_pathinfo = 1
(2)Nginx服务器无法实现伪静态化,在后台设置不成功
这主要是nginx的rewrite没有设置导致的
在nginx.conf里找到网站的server配置段,一般我们推荐如下的配置
server { listen 80; server_name yourdomain.com; root /home/yourdomain/www/; index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; } location ~ .*\.php(\/.*)*$ { include fastcgi.conf; fastcgi_pass 127.0.0.1:9000; } access_log logs/yourdomain.log combined; }
:!:注意把以上配置中的yourdomain换成你自己的实际域名和实际目录存放地址
标签:WordPress
相关阅读 >>
详解wordpress中分类函数wp_list_categories的使用
关于wordpress的seo优化相关的一些php页面脚本技巧
用dreamweaver制作wordpress的留言本iii
wordpress编辑器中添加链接功能自动加入nofollow的方法
更多相关阅读请进入《wordpress》频道 >>