View Single Post
  #18 (permalink)  
Old 11-17-2009, 09:19 AM
Gurjeet Clair Gurjeet Clair is offline
Starter Member
 
Posts: 2
Default CentOS 5, RHEL5 libphp5 cannot load fix

ERROR:
startup.log:Starting apache...httpd: Syntax error on line 232 of /opt/zimbra/conf/httpd.conf: Cannot load /opt/zimbra/httpd/modules/libphp5.so into server: /opt/zimbra/httpd/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied

Also aspell doesn't seem to work either.


The real problem is because of SELinux is set to Enforcing mode. You either need to turn it off, or set it to permissive (it don't like whatcha trying to do, it'll tell on ya in the logs, but it'll still let you do it).

However in todays world I don't think thats a good fix. SELinux has a purpose and it should be used where and when it can. The real fix is this:

# chcon -t textrel_shlib_t /opt/zimbra/httpd/modules/libphp5.so

The reason why copying over the system php5 lib over is that, when copying you also copy over the SElinux context with the file. I don't recommend that in general because there might be issues with system calls that aren't compiled in on your system version vs the one that comes with Zimbra.

Hope that helps and clears some things up.
Reply With Quote