invoker 发表于 2016-10-17 16:18:01

lnmpa 安装后502

军哥,求助啊,安装了lnmpa后,这种模式的URL地址(http://www.shop.com/shop/index.php?act=seller_center&op=index) 就502,
但是用(http://www.shop.com/shop/seller_center-index)就能正常访问

前一种URL模式时nginx 报错信息
9250#0: *15 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory)
while connecting to upstream, client: 192.168.0.88, server: www.shop.com,
request: "GET /shop/index.php?act=seller_center&op=index HTTP/1.1",
upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.shop.com"

tmp目录下面也没有php-cgi.sock ;

licess 发表于 2016-10-17 17:42:55

回复 1# 的帖子

lnmpa没有php-fpm所以不会存在php-cgi.sock

lnmpa发生502基本上都是apache挂掉了

invoker 发表于 2016-10-17 18:04:32

# ps -sf|grep httpd
    011074 0000000000000000 0000000000000000 0000000000000000 0000000180000000 S+   pts/0      0:00\_ grep --color=auto httpd
# service httpd status
Apache is running.




现在的问题是只能访问.html的file:///C:/Users/win7/AppData/Roaming/Tencent/Users/442616183/QQ/WinTemp/RichOle/CTN(ZK)SW584页面,.php就报错

licess 发表于 2016-10-18 10:46:38

ps sf没意义
ps aux|grep httpd

status不一定准确这个是靠pid文件的,有些情况下进程被kill,pid文件依然存在
页: [1]
查看完整版本: lnmpa 安装后502