cannot restore segment prot after reloc: Permission denied问题解决办法

今天安装apache时候安装成功了在启动的时候报错,错误信息如下:

root@localhost fgn]# /usr/local/apache/bin/apachectl restart
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp4.so into server: /usr/local/apache/modules/libphp4.so: cannot restore segment prot after reloc: Permission denied

解决:
这是因为SELINUX的问题,需要关闭SELINX,执行:/usr/sbin/setenforce 0

发表评论

电子邮件地址不会被公开。 必填项已用*标注