打印

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

复制内容到剪贴板
代码:
httpd: Syntax error on line 343 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
Remove old startup files and Add new startup file.....
error reading information on service php-fpm: No such file or directory
军哥  这个是PHP没有编译好吗,这个是字安装apache。sh 之后出现的 在nginx下面是正常的啊  没有出现502 错误哦  谢谢!

找到了解决办法
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf的解决方法  在终端上输入以下命令:# setenforce 0

# chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t /usr/local/apache/modules/libphp5.so
(注:/usr/local/apache为apache的安装目录)

# service httpd restart
# setenforce 1


[ 本帖最后由 houseme 于 2012-11-4 09:26 编辑 ]

TOP