Help answer threads with 0 replies.
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 03-11-2007, 12:52 AM   #1
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

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


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/ into server: /usr/local/apache2/modules/ 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/ (i've tried 755 as well)

chcon /usr/local/apache2/modules/ -t shlib_t


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

Old 03-11-2007, 04:19 AM   #2
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
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?


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


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 jun_tuko Linux - Software 7 01-06-2008 12:12 AM
Apache Server error, crillegs Linux - Software 3 05-23-2006 02:56 PM
Cannot load /usr/lib/apache2/ into server Kristijan Slackware 1 10-08-2005 01:28 AM
FreeBSD PHP5 ports error - is not a valid libtool archive *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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 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
Open Source Consulting | Domain Registration