LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Apache 2.0.59 and PHP 5.2.0 on Fedora Core Problem (https://www.linuxquestions.org/questions/fedora-35/apache-2-0-59-and-php-5-2-0-on-fedora-core-problem-517551/)

codewrighter 01-08-2007 07:59 PM

Apache 2.0.59 and PHP 5.2.0 on Fedora Core Problem
 
Hey Everyone,

I have apache 2.0.59 installed on my Fedora Core 4 machine and it works properly except for the fact that I cannot get it to load the php5.2.0 module. in the httpd.conf file i have the line

LoadModule php5_module modules/libphp5.so

however when i try to run the command

$ ./apachectl start

i get the following error


Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr /local/apache2/modules/libphp5.so: cannot restore segment prot afte r reloc: Permission denied

I've been searching trying to figure out how to fix this, but no luck, any suggestions for me?

Thanks

rylan76 01-09-2007 01:11 AM

Hmm - I think I saw this before in another post. Are you running SELinux / is SELinux active in your install? If I'm not mistaken this is a security problem with SELinux and Apache.

I think you might first try disabling SELinux (try editing /etc/selinux/config and setting selinux=disabled) and seeing if you can start apache. If you still cannot, you might want to try recompiling apache and PHP and seeing it this helps?

Where did you get the PHP5 .so? As far as I know the Apache binary and the PHP binary need to be compiled on the same compiler version. I use an Apache and PHP I compiled myself, I don't know what the exact parameters might be if you installed them via packages?

The error you posted might also just be a mismatch in versions - i. e. Apache expects a certain "format" for the PHP 5 .so, and the one you've got is not in the correct format (i. e. it was compiled / linked with an older GCC or something...)

That is, if you did not compile it yourself. Did you?

XavierP 01-09-2007 03:41 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here - http://www.linuxquestions.org/questi...hreadid=517547


All times are GMT -5. The time now is 08:17 AM.