标签:
下载 wget xxxx 解压
./configure --prefix=/usr/nginx
make && make install
修改配置文件
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
改成fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
去掉php前面的注释支持php
启动nginx
nginx -c /path/to/nginx.conf
测试:wget localhost/test.php,成功
标签:
原文地址:http://www.cnblogs.com/zenghansen/p/4742496.html