LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Closed Thread
  Search this Thread
Old 01-08-2007, 08:59 PM   #1
codewrighter
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/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
 
Old 01-09-2007, 02:11 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
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
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:25 AM.

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