升级到ubuntu 12.10 后nginx报502错误,php无法运行。
netstat -an未发现监听9000端口。
查看/var/log/php5-fpm.log一切正常。
随后查看/etc/php5/fpm/pool.d/www.conf,发现listen = /var/run/php5-fpm.sock。
修改nginx下的sites配置
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param APPLICATION_ENV production;
include fastcgi_params;
}
为
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
重启php5-fpm与nginx后,恢复。
财哥的博客
分享到:
相关推荐
个人整理的使用ubuntu12.10 下载 x86平台下载android源码的方法.附件中包含2013年9月下载下来的最新repo 版本1.19
ubuntu-12.10-desktop-i386.part07.rar
ubuntu-12.10-desktop-i386.part04.rar
ubuntu-12.10-desktop-i386.part13.rar
ubuntu-12.10-desktop-i386.part10.rar
ubuntu-12.10-desktop-i386.part09.rar
讲解了ubuntux12.10xia像在windows下一样安装QQ
Ubuntu12.10 一些日常使用操作说明,适合新手查看。
Ubuntu12.10下安装SimpleScalar.pdf
ubuntu12.10操作系统下载
ubuntu-12.10-desktop-i386.part12.rar
AIPipeline-2019.9.12.10.51.41-py3-none-any.whl
手把手教你怎么在VMware中安装Ubuntu操作系统。
AIPipeline-2019.9.12.10.51.41-py3-none-any.whl.zip
ubuntu-12.10-desktop-i386.part01.rar
ubuntu-12.10-desktop-i386.part06.rar
ubuntu-12.10-desktop-i386.part11.rar
ubuntu-12.10-desktop-i386.part03.rar
ubuntu-12.10-desktop-i386.part02.rar
ubuntu-12.10-desktop-i386.part05.rar