AMH 社区首页
AMH社区 - 开放自由有价值的社区
[综合话题] 又出现了 AMH5.0下LNMP环境内所有网站502错误 |
|
---|---|
zmyamh |
zmyamh 发表于 2014-10-09 22:28:17
测试了一下 静态文件访问没有问题
动态文件访问就是502错误 网站日志如下: 2014/10/09 22:20:26 [crit] 1722#0: *349 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/%E9%9A%94%E8%A1%8C%E6%8D%A2%E8%89%B2 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net" 解决的办法还是在兼容模式跟安全模式下切换一次2014/10/09 22:20:27 [crit] 1722#0: *351 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 113.246.136.101, server: xxoo.net, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net", referrer: "http://xxoo.net/wp-admin/options-general.php?page=super-static-cache-admin.php" 2014/10/09 22:20:29 [crit] 1722#0: *353 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/%E9%9F%B3%E4%B9%90 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net" 2014/10/09 22:20:34 [crit] 1720#0: *356 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/%E9%AD%94%E5%85%BD%E4%B8%96%E7%95%8C HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net" 2014/10/09 22:20:38 [crit] 1720#0: *358 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/2%E6%9C%88 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net" 2014/10/09 22:20:42 [crit] 1720#0: *360 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/500%E9%94%99%E8%AF%AF HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net" 2014/10/09 22:20:46 [crit] 1720#0: *362 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/gui%E8%AE%BE%E8%AE%A1 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net" 2014/10/09 22:20:48 [crit] 1720#0: *365 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 198.245.49.180, server: xxoo.net, request: "GET /%E8%B5%84%E6%BA%90%E5%88%86%E4%BA%AB/4154.html HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net" 2014/10/09 22:20:52 [crit] 1720#0: *367 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/iis%E6%97%A5%E5%BF%97 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net" 2014/10/09 22:20:54 [crit] 1720#0: *369 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 198.245.49.180, server: xxoo.net, request: "GET /%E8%B5%84%E6%BA%90%E5%88%86%E4%BA%AB/4172.html HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net" 2014/10/09 22:20:55 [crit] 1720#0: *370 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/lnmpa%E5%8D%87%E7%BA%A7 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net" 2014/10/09 22:21:00 [crit] 1720#0: *376 connect() to unix:/tmp/php-cgi-LNMP-xxoo.net.sock failed (13: Permission denied) while connecting to upstream, client: 144.76.95.39, server: xxoo.net, request: "GET /tag/mysql%E6%97%A5%E5%BF%97 HTTP/1.0", upstream: "fastcgi://unix:/tmp/php-cgi-LNMP-xxoo.net.sock:", host: "xxoo.net"
点赞,加油! (0分)
2014-10-09 22:28:17 1
|
zmyamh |
好象是php没有启动?
我在AMH » LNMP环境应用 看虚拟主机的nignx跟php都是正常启动的状态 然后点击那个小数字先停掉所有的php,然后再重新开启 网站就可以正常访问木有502错误了 不知道是怎么回事 P.s 这个情况实在重启服务器之后出现的
回复
2014-10-09 22:55:05 2
|
Amgsh |
我出现了这种情况,重启后发生过。但不是每次重启都会出现。
回复
2014-10-10 09:56:19 3
|
amysql |
楼主是用什么版本的PHP?
回复
2014-10-10 14:10:37 4
AMH面板 - 好用高效低占用、安全可靠极稳定 |
zmyamh |
回复
2014-10-10 20:57:58 5
|
dahai |
我也遇到重启后就是502,必须切换到兼容或安全模式才能正常访问,我用的是nginx-generic-1.6.0 + mysql-generic-5.5.40 + php-5.4.29
回复
2014-10-20 14:44:49 6
|
zmyamh |
引用: 那咱们俩差不多的症状了...不知道是为啥 我都不敢重启了
回复
2014-10-20 20:18:10 7
|
addy |
表示503常有 哈哈!
回复
2014-10-20 21:29:32 8
|
mingsz8 |
我的网站今晚也有出现一次502,怎么解决
回复
2014-10-20 23:43:47 9
|
zmyamh |
502这个问题其实蛮多原因的,还是要看下日志啥的仔细排查一下
回复
2014-10-21 09:22:01 10
|