打印

LNMP一键安装包的Nginx 502 Bad Gateway错误可能原因及解决方法

第六种情况如何解决????

TOP

回复 46# 的帖子

没运行就运行
/etc/init.d/php-fpm start

Paypal信用卡代付/代购VPS/域名/软件/付费代维问题解决等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 反馈信息!

TOP

ubuntu11.10

/usr/local/php$ /etc/init.d/php-fpm start
Starting php_fpm /etc/init.d/php-fpm: 156: /usr/local/php/bin/php-cgi: not found
failed

/usr/local/php$ ll
总用量 12
drwxr-xr-x  3 root root 4096 2011-10-21 13:13 ./
drwxr-xr-x 19 root root 4096 2011-10-21 13:14 ../
drwxr-xr-x  2 root root 4096 2011-10-21 13:13 etc/

TOP

回复 48# 的帖子

php没有编译安装成功。

Paypal信用卡代付/代购VPS/域名/软件/付费代维问题解决等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 反馈信息!

TOP

系统是Ubuntu server 11.10的
总是出现502错误,纠结了很长时间,发现把PHP编译的代码修改下居然好了,就是去掉php编译的 一个选项 --with-openssl ,不知道是什么原因,麻烦管理员看下日志。
附件: 您所在的用户组无法下载或查看附件

TOP

这个是修改后的日志文件,麻烦管理员看下是哪里出问题了
谢谢了
附件: 您所在的用户组无法下载或查看附件

TOP

max_requests 多少值合适了? 我这服务器。。一旦访问的人多了。。。就502

TOP

回复 52# 的帖子

可以5个5个的往上加着试试

Paypal信用卡代付/代购VPS/域名/软件/付费代维问题解决等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 反馈信息!

TOP

max_request 我设置为30124 max_children = 500

TOP

2011/12/03 17:52:20 [crit] 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难道就挂了。。。

TOP

留个记号。我也遇到了。
不过重启一下就OK了。
我发现这个和硬盘和内存有关系。
我的自动备份设置为凌晨3点。
每次都是在凌晨3点多就出现了这个问题。
或许是我的硬盘满了。自动备份时无法完成压缩出现了这个问题。
又或者是我的内存太小。
我试了一下。
我在凌晨3点当VPS执行自动压缩备份时。
打开网站的速度非常慢。
我的网站数据2G。一键lnmp。linode512

TOP

我必须顶一下这个帖子。

以前是  lnmp的升级为 lnmpa的兄弟  和上面所有的问题都没有关系, 使用/root/vhost.sh 将所有的虚拟主机重新添加一遍即可。我折腾了6个小时!!!

TOP

我这里也遇到了php 502 错误

错误信息如下:

Starting php_fpm /etc/init.d/php-fpm: line 61: /usr/local/php/bin/php-cgi: No such file or directoryfailed

TOP

回复 58# 的帖子

可能php是没有编译安装成功

Paypal信用卡代付/代购VPS/域名/软件/付费代维问题解决等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 反馈信息!

TOP

我的出现502 Bad Gateway,跪求解决啊 ubuntu系统

2012/04/24 15:23:28 [crit] 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 [crit] 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 [crit] 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 [crit] 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 [crit] 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 [emerg] 24217#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/27 14:05:57 [emerg] 24217#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/27 14:05:57 [emerg] 24217#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/27 14:05:57 [emerg] 24217#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/27 14:05:57 [emerg] 24217#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2012/04/27 14:05:57 [emerg] 24217#0: still could not bind()
2012/04/27 14:07:04 [crit] 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 [crit] 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 [crit] 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 [crit] 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 [crit] 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"

TOP