nginx 1.4.6支持 php 5.6 ubuntu14

配置文件路径

/etc/nginx/sites-enable/default

这个文件默认有一份,可以备份一份,把这个文件改一下

代码语言:javascript
复制
server{
listen 80;

server_name *.qmwjj.cc; #绑定域名

root /t_web/t_site/page;

index index.php index.html index.htm;

location ~ \.php$ {

	root /t_web/t_site/page;[这句加不加都可以]

	fastcgi_pass 127.0.0.1:9000;

	fastcgi_index index.php;

	fastcgi\_param SCRIPT\_FILENAME /t\_web/t\_site/page$fastcgi\_script\_name;

	include fastcgi_params;

}

}

(adsbygoogle = window.adsbygoogle || []).push({});