rashid Posted June 23, 2006 Share Posted June 23, 2006 Can someone please tell me what this means[root@magic ~]# apachectl -thttpd: Syntax error on line 54 of /www/conf/httpd.conf: Cannot load /www/modules/libphp5.so into server: /www/modules/libphp5.so: cannot restore segment prot after reloc: Permission deniedI have installed everything perfectly. I have apache 2 working + made databases and table data in mysql. As soon as I try to complete the P of the LAM it keeps acting the fool. Here is my install process, please please advise me where Im going wrong...gunzip phptar -xvf phpyum -y install libxml2-devel (./configure will not work without this and neither will make)vi php_installcd /usr/local/src/php-5.1.4./configure \--prefix=/usr/local/php--with-apxs2=/www/bin/apxs \--with-mysql=/usr/local/mysql \--enable-ftp \--enable-trans-sidchmod 755 php_install ./php_install (this goes alll ok with no errors)make (watch verbose output)Build complete.(It is safe to ignore warnings about tempnam and tmpnam).make install.cp php.ini-dist /usr/local/lib/php.iniand then when I make my test php page called index.php as I have added the following in httpd.conf<IfModule dir_module> DirectoryIndex index.php default.php index.html index.htm</IfModule>AddType application/x-httpd-php .php .phtmlthis is when I get the above error when running apachectl -t /graceful/start/restart/stopany of these switches returns the error. Im so hacked off! This is all I need to get working soI can work on data etc. Im trying to build this quicktime so I can get some HTML/CSS files onto my server and start testing. Im grateful for all your time in reading this... hope to hear from anyone soon.Box is Fedora Core 5 onCompaq Deskpro256Mb+9.5Gb HDDThx+Peace Quote Link to comment https://forums.phpfreaks.com/topic/12746-php-5-install-woes-for-lamp-fedora-core-5/ Share on other sites More sharing options...
Koobi Posted June 24, 2006 Share Posted June 24, 2006 sounds like an SELinux issue.i can't confidently tell you the solution because i've never tried this but you would probably have to manipulate the .so file using chcon so that you can manipulate the security settings of that particular .so file. It seems as though SELinux is not allowing apache to access it because the system sees it as an unauthorized file.[a href=\"http://en.wikipedia.org/wiki/Security_Enhanced_Linux\" target=\"_blank\"]Security-Enhanced Linux (SELinux)[/a][a href=\"http://www.nsa.gov/selinux/info/faq.cfm\" target=\"_blank\"]SELinux Frequently Asked Questions (FAQ)[/a] Quote Link to comment https://forums.phpfreaks.com/topic/12746-php-5-install-woes-for-lamp-fedora-core-5/#findComment-49158 Share on other sites More sharing options...
rashid Posted June 26, 2006 Author Share Posted June 26, 2006 [!--quoteo(post=387544:date=Jun 24 2006, 03:06 PM:name=Bane)--][div class=\'quotetop\']QUOTE(Bane @ Jun 24 2006, 03:06 PM) [snapback]387544[/snapback][/div][div class=\'quotemain\'][!--quotec--]sounds like an SELinux issue.i can't confidently tell you the solution because i've never tried this but you would probably have to manipulate the .so file using chcon so that you can manipulate the security settings of that particular .so file. It seems as though SELinux is not allowing apache to access it because the system sees it as an unauthorized file.[a href=\"http://en.wikipedia.org/wiki/Security_Enhanced_Linux\" target=\"_blank\"]Security-Enhanced Linux (SELinux)[/a][a href=\"http://www.nsa.gov/selinux/info/faq.cfm\" target=\"_blank\"]SELinux Frequently Asked Questions (FAQ)[/a][/quote]Banethx for being the only one bothered to reply, appreciate that. i will look into this though Im sure I disabled SELinux at the install stage. I'll check the links you posted, thanks very much dude. Quote Link to comment https://forums.phpfreaks.com/topic/12746-php-5-install-woes-for-lamp-fedora-core-5/#findComment-49559 Share on other sites More sharing options...
Koobi Posted June 26, 2006 Share Posted June 26, 2006 [!--quoteo(post=387953:date=Jun 26 2006, 01:17 PM:name=rashid)--][div class=\'quotetop\']QUOTE(rashid @ Jun 26 2006, 01:17 PM) [snapback]387953[/snapback][/div][div class=\'quotemain\'][!--quotec--]Banethx for being the only one bothered to reply, appreciate that. i will look into this though Im sure I disabled SELinux at the install stage. I'll check the links you posted, thanks very much dude.[/quote]Not a problem. The only reason I have time to reply here is because the other guys are doing such a great job of replying in other parts of the forum that need attention too :)Hope you sort it out and let me know if need further assitance with this. Quote Link to comment https://forums.phpfreaks.com/topic/12746-php-5-install-woes-for-lamp-fedora-core-5/#findComment-49569 Share on other sites More sharing options...
rashid Posted June 26, 2006 Author Share Posted June 26, 2006 [!--quoteo(post=387963:date=Jun 26 2006, 03:20 AM:name=Bane)--][div class=\'quotetop\']QUOTE(Bane @ Jun 26 2006, 03:20 AM) [snapback]387963[/snapback][/div][div class=\'quotemain\'][!--quotec--]Not a problem. The only reason I have time to reply here is because the other guys are doing such a great job of replying in other parts of the forum that need attention too :)Hope you sort it out and let me know if need further assitance with this.[/quote]BaneYou are the man! I now have a fully functional LAMP server. I checked your links then found out how to disable SELinux by going to /etc/sysconfig/Selinux and changing =enforcing to disabled. RebootedI then ran./configure again make & make installstarted MySQl - restarted apache but ran a systax check first. Looked all ok, then tested my php page from theDIR where all my html docos are stored. piece a cake.I'll be looking to run this on Gentoo very soon.Thanks again for your time. Peace... Quote Link to comment https://forums.phpfreaks.com/topic/12746-php-5-install-woes-for-lamp-fedora-core-5/#findComment-49589 Share on other sites More sharing options...
Koobi Posted June 26, 2006 Share Posted June 26, 2006 sweet :)and thanks for posting the solution here for the others to see.yeah i'm planning to move to another distro soon, either Debian or Gentoo...or both on different PC'sglad you sorted it out. Quote Link to comment https://forums.phpfreaks.com/topic/12746-php-5-install-woes-for-lamp-fedora-core-5/#findComment-49599 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.