Thursday, January 15, 2009

Unable to load php module after restarting Apache

You may get this error while restarting Apache.

[root@test ~]# /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/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied

This is likely due the the SELinux setting being set to “enforcing”. You may need to disable SELinux .

To Temporarily disable enforcement on a running system:

#/usr/sbin/setenforce 0

To permanently disable enforcement during a system startup

change “enforcing” to “disabled” in ”/etc/selinux/config” and reboot.

0 comments:

Post a Comment

  © Blogger template PingooIgloo by Ourblogtemplates.com 2009

Back to TOP