LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-11-2007, 12:52 AM   #1
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Rep: Reputation: 17
error while trying to launch apache server- permission prob with libphp5.so


Hi,

I've just installed the most recent versions of apache2, php, mysql
from tarballs.

I've configured follow all the mixture of various steps, but I made sure that mysql server runs properly, and php and apache is configured properly.

The problem arises when I try to launch apache server, as I type

/usr/local/apache2/bin/apachectl start

I get

httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied

this, which really frustrates me.

Obviously I searched google(again... even foreign language pages)
It came down to 3 commands which are

chmod 777 /usr/local/apache2/modules/libphp5.so (i've tried 755 as well)

chcon /usr/local/apache2/modules/libphp5.so -t shlib_t

and

restorecon -R -v /usr/local/apache2/modules

but non of them would work.

I couldn't find any other solutions than these.

But people seem to get it working from one of these commands.

And I still get the error msg shown above.

Can someone tell me how to fix up this permission problem?

Thanks a lot in advance

Cheers
 
Old 03-11-2007, 04:19 AM   #2
Jaqui
Member
 
Registered: Jan 2006
Location: Vancouver BC
Distribution: LFS, SLak, Gentoo, Debian
Posts: 291

Rep: Reputation: 36
does apache have WRITE permissions on the /usr/local/apache2/modules/ folder?
doesn't matter if it had write permissions on the shared object, if it can't write to the folder the object is in.
 
Old 03-11-2007, 05:41 AM   #3
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
Thanks for the quick reply Jaqui.
I've done,

chown -R apache /usr/local/apache2/modules

chown -R daemon /usr/local/apache2/modules

But it still wouldn't work.

Is this what I'm supposed to try?

Cheers

Last edited by rlee923; 03-11-2007 at 05:46 AM.
 
  


Reply


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
Error in PHP 5.0.5 and Apache 1.3.34 - Cannot load libphp5.so jun_tuko Linux - Software 7 01-06-2008 12:12 AM
Apache Server error, libphp5.so crillegs Linux - Software 3 05-23-2006 02:56 PM
Cannot load /usr/lib/apache2/libphp5.so into server Kristijan Slackware 1 10-08-2005 01:28 AM
FreeBSD PHP5 ports error - libphp5.la is not a valid libtool archive BizHat.com *BSD 2 08-18-2005 11:27 AM
Apache Vhost( You don't have permission to access / on this server.) trekgraham Linux - Software 3 07-08-2004 11:01 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration