安装NGINX+PHP后出现403 Forbidden
PHP错误日志:(运行php-cgi或spawn-fcgi,“
***
”为安装的所有php mod)
PHP Warning: Module '***' already loaded in Unknown on line 0
Nginx错误日志:
[crit] 15871#0: *12 connect() to unix:/var/run/php-fastcgi.socket failed (13: Permission denied) while connecting to upstream, client: 192.168.177.190, server: localhost, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fastcgi.socket:", host: "192.168.177.1:8000"
[error] 15871#0: *12 open() "/usr/html/50x.html" failed (2: No such file or directory), client: 192.168.177.190, server: localhost, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fastcgi.socket", host: "192.168.177.1:8000"
我想php出现这个错误与系统里运行了/usr/bin/fcgi-cgi而发生冲突有关。
如果是冲突,那能不能解决?
spawn-fcgi运行的命令:(没有php-fpm)
/usr/bin/spawn-fcgi -s /var/run/php-fastcgi.socket -P /var/run/php-fastcgi.pid -C 2 -u www -g www -f /usr/bin/php-cgi
下面是php.ini、nginx.conf文件:
php.ini
nginx.conf
wordpress.conf
fastcgi_params_wp
使用的源:
http://downloads.openwrt.org.cn/PandoraBox/ralink/mt7620/packages/
详细的系统和软件文件及其版本明细放在了360网盘中,
http://yunpan.cn/cApeYIdHa2aGD
(提取码:efbe)
希望有人能帮帮忙,即使不能解决也感谢你的留意!谢谢!
Matthew
葬樱沁雪叹伶仃
11 years, 8 months ago