Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


Closed Thread
  Search this Thread
Old 01-08-2007, 08:59 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
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/

however when i try to run the command

$ ./apachectl start

i get the following error

Cannot load /usr/local/apache2/modules/ into server: /usr /local/apache2/modules/ 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?

Old 01-09-2007, 02:11 AM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,481

Rep: Reputation: 88
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?
Old 01-09-2007, 04:41 PM   #3
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,191
Blog Entries: 4

Rep: Reputation: 464Reputation: 464Reputation: 464Reputation: 464Reputation: 464
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 -

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2.0.59 and PHP 5.2.0 problem in Fedora Core 4 codewrighter Linux - Newbie 2 01-10-2007 12:36 AM
Fedora Core 5 and PHP/Apache johnejo Fedora 0 06-12-2006 10:38 AM
Fedora Core 3 And PHP + Apache xbigs Fedora 1 12-17-2005 08:24 AM
uninstaling php and apache on fedora core 3 mhatre kedar Linux - Networking 1 03-20-2005 05:58 AM
Apache PhP MSQL - if they come with fedora core 1 where are they Virtualhate Linux - Newbie 1 05-16-2004 09:33 PM

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration