wordpress的helloworld (二)

解压zip包 unzip wordpress-3.3.1-zh_CN.zip
装完mysql
直接下一步下一步安装就好了
简单得掉渣了
装值钱先建好mysql

装完之后样式错乱
http://vus520.diandian.com/post/2010-06-21/15949664
http://www.qiuys.com/wordpress-faq-of-modify-pages/
http://biergaizi.info/?p=1166
我靠,蛋疼了,上面的别看了
因为nginx解析fastcgi的配置有问题,现面是最简的好使的

root@haoning:/usr/local/openresty/nginx/nginx/conf# cat nginx.conf
user www-data;
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
server {
listen 80;
server_name localhost;
access_log /home/ubuntu/log/access.log;
location / {
root /home/ubuntu/www;
index index.html index.htm index.php;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
set $path_info "/";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /home/ubuntu/www;
}
fastcgi_param SCRIPT_FILENAME /home/ubuntu/www/$real_script_name;
fastcgi_param script_name $real_script_name;
fastcgi_param path_info $path_info;
include /usr/local/openresty/nginx/nginx/conf/fastcgi_params;
}
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值