回复 46# 的帖子
没运行就运行 :L/etc/init.d/php-fpm start
ubuntu11.10
/usr/local/php$ /etc/init.d/php-fpm startStarting php_fpm /etc/init.d/php-fpm: 156: /usr/local/php/bin/php-cgi: not found
failed
/usr/local/php$ ll
总用量 12
drwxr-xr-x3 root root 4096 2011-10-21 13:13 ./
drwxr-xr-x 19 root root 4096 2011-10-21 13:14 ../
drwxr-xr-x2 root root 4096 2011-10-21 13:13 etc/
回复 48# 的帖子
php没有编译安装成功。 系统是Ubuntu server 11.10的总是出现502错误,纠结了很长时间,发现把PHP编译的代码修改下居然好了,就是去掉php编译的 一个选项 --with-openssl ,不知道是什么原因,麻烦管理员看下日志。
这个是修改后的日志文件,麻烦管理员看下是哪里出问题了
谢谢了
max_requests 多少值合适了? 我这服务器。。一旦访问的人多了。。。就502
回复 52# 的帖子
可以5个5个的往上加着试试 max_request 我设置为30124 max_children = 500 2011/12/03 17:52:20 31211#0: *29 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client:说明php-cgi没有运行。。。请求量一旦在一个时间很多,php-cgi难道就挂了。。。 留个记号。我也遇到了。
不过重启一下就OK了。
我发现这个和硬盘和内存有关系。
我的自动备份设置为凌晨3点。
每次都是在凌晨3点多就出现了这个问题。
或许是我的硬盘满了。自动备份时无法完成压缩出现了这个问题。
又或者是我的内存太小。
我试了一下。
我在凌晨3点当VPS执行自动压缩备份时。
打开网站的速度非常慢。
我的网站数据2G。一键lnmp。linode512 我必须顶一下这个帖子。
以前是lnmp的升级为 lnmpa的兄弟和上面所有的问题都没有关系, 使用/root/vhost.sh 将所有的虚拟主机重新添加一遍即可。我折腾了6个小时!!!
我这里也遇到了php 502 错误
错误信息如下:Starting php_fpm /etc/init.d/php-fpm: line 61: /usr/local/php/bin/php-cgi: No such file or directoryfailed
回复 58# 的帖子
可能php是没有编译安装成功我的出现502 Bad Gateway,跪求解决啊 ubuntu系统
2012/04/24 15:23:28 23841#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.lnmp.org, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "localhost", referrer: "http://localhost/"2012/04/24 15:23:34 23841#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.lnmp.org, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "localhost", referrer: "http://localhost/"
2012/04/27 12:06:02 1122#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.lnmp.org, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "localhost", referrer: "http://localhost/"
2012/04/27 12:11:15 1122#0: *4 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.76, server: www.lnmp.org, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "192.168.1.82", referrer: "http://192.168.1.82/"
2012/04/27 12:14:11 1122#0: *7 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.76, server: www.lnmp.org, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "192.168.1.82", referrer: "http://192.168.1.82/"
2012/04/27 14:05:57 24217#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/27 14:05:57 24217#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/27 14:05:57 24217#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/27 14:05:57 24217#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/27 14:05:57 24217#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/27 14:05:57 24217#0: still could not bind()
2012/04/27 14:07:04 1122#0: *9 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.76, server: www.lnmp.org, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "192.168.1.82", referrer: "http://192.168.1.82/"
2012/04/27 14:07:09 1122#0: *9 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.76, server: www.lnmp.org, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "192.168.1.82", referrer: "http://192.168.1.82/"
2012/04/27 14:14:41 1122#0: *12 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.76, server: www.lnmp.org, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "192.168.1.82", referrer: "http://192.168.1.82/"
2012/04/27 14:15:06 1122#0: *14 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.lnmp.org, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "localhost", referrer: "http://localhost/"
2012/04/27 14:17:24 1122#0: *16 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: www.lnmp.org, request: "GET /p.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "localhost"