/usr/local/apache/bin/apachectl start httpd: Syntax error on line 105 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
这是由SELinux引起的,有两种解决办法:
一、使用chcon命令,执行:chcon -t texrel_shlib_t /usr/local/apache/modules/libphp5.so
二、禁止掉SELinux,更改/etc/sysconfig/selinux 文件的内容SELINUX=disabled