Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


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

Rep: Reputation: 0
Apache 2.0.59 and PHP 5.2.0 problem in Fedora Core 4

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, 10:09 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
if you get a "permission denied error" you have to change the permissions of the file...

sorry - i was wrong - but
did you run the command as root? if not you should.

Last edited by j-ray; 01-09-2007 at 10:23 AM.
Old 01-09-2007, 11:36 PM   #3
LQ Newbie
Registered: Jan 2007
Posts: 5

Original Poster
Rep: Reputation: 0
SO actually the solution to this problem turned out to be in the file, so all i did (after searching for an answer for days) was to go to where installed php and found the module and executed the following command

$chcon -t shlib_t

Then move that file into the apache modules section and everything suddenly works great.

So there's the answer.


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
Fedora Core 5 and PHP/Apache johnejo Fedora 0 06-12-2006 09:38 AM
Need help on PHP connecting to MySQL (Fedora Core 4, Apache) jun_tuko Programming 2 01-09-2006 07:05 PM
Fedora Core 3 And PHP + Apache xbigs Fedora 1 12-17-2005 07:24 AM
uninstaling php and apache on fedora core 3 mhatre kedar Linux - Networking 1 03-20-2005 04:58 AM
Apache PhP MSQL - if they come with fedora core 1 where are they Virtualhate Linux - Newbie 1 05-16-2004 08:33 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:54 AM.

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