PDA

View Full Version : Http/php5 problem



MKoper
04-27-2009, 02:14 PM
After running the custombuild script, I get the following error when the httpd is restarted:
Starting httpd: httpd: Syntax error on line 18 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/libmysqlclient.so.15: cannot restore segment prot after reloc: Permission denied


Before running custombuild, the httpd was running fine...

I've been searching for quite some time, but cannot find any pointers how to solve this. Both files exists and seem to have the right permissions. Can someone help? Do I need to rebuild mysql?

MKoper
04-28-2009, 05:06 AM
I do not why exactly, but browsing some more and doing some experiments, I found a sollution.

The following command fixes the problem:
chcon -t texrel_shlib_t /usr/lib/apache/libphp5.so

More information can be found on error-in-php-5.0.5-and-apache-1.3.34-cannot-load-libphp5.so-380262/ (http://www.linuxquestions.org/questions/linux-software-2/error-in-php-5.0.5-and-apache-1.3.34-cannot-load-libphp5.so-380262/)

I hope this helps others who also get the same errors.