bigb89 Posted March 26, 2007 Share Posted March 26, 2007 Hi, I am trying to install PHP and configure it to work with Apache. So far I have Apache 2 and MySQL 5 working just fine, but after intalling PHP I tried to restart Apache and I get the following error: Cannot load /www/modules/libphp5.so into server: /www/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied. What's causing this error is the following line on my httpd.conf file: LoadModule php5_module modules/libphp5.so. Could anyone explain to me what's causing this error and how can I fix it? Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/44294-cannot-load-wwwmoduleslibphp5so-into-server-error/ Share on other sites More sharing options...
rlee923 Posted March 31, 2007 Share Posted March 31, 2007 Hi, I assume you are using one of those linux with Selinux enabled. The problem is caused by the security system - selinux, blocking it's access to libph5.so. chcon -t texrel_shlib_t /usr/local/apache/modules/libphp5.so This is the magic line of the code, change the path so it points to the directory where you've installed apache2 if necessary. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/44294-cannot-load-wwwmoduleslibphp5so-into-server-error/#findComment-218642 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.