LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   httpd fails to start (https://www.linuxquestions.org/questions/linux-software-2/httpd-fails-to-start-322221/)

arsham 05-10-2005 11:29 PM

httpd fails to start
 
Hi there

Each time I want to start httpd from services ( service management ) , I recieve this error :

httpd failed. The error was: Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libexpat.so.0: failed to map segment from shared object: Permission denied

I tried to reinstall httpd and expat , but still have this problem
Please help me to fix this


Regards
Arsham

michaelsanford 05-11-2005 12:31 AM

What happens when you try this in a terminal
Code:

sudo apachectl start
Same error?

Massif 05-11-2005 12:32 AM

Once I had a problem with a module in httpd. I was advised to comment the module out of the httpd.conf file. That worked for me, however I'm not sure how vital expat is to httpd. It's worth a try.

Otherwise:

What linux distro are you running?
What type of httpd and expat install did you do? (RPM or source)
If an RPM, was it made for your distro?

arsham 05-11-2005 03:13 AM

when I try to sudo it , gets password , I enter ( not password entering ) but nothing happens , no error or comments
from shell prompt I dont recieve any errors , I recieve errors from "Services Configuration " when I try to start the service


I use redhat enterprise AS 4 and the httpd was made during setup
this used to work for me , but I dont know why its giving me errors , I try to install apache 2

michaelsanford 05-11-2005 10:11 AM

If you don't receive any errors in the terminal then it likely means httpd is starting correctly. Maybe Services Configuration is not prompting you for your credentials and trying to start httpd as your user, just a guess... I don't know about Services Configuration in FC3 though, maybe this should be moved to the distro forum.

arsham 05-11-2005 11:44 AM

When I try in terminal as root :
apachectl start
I recieve nothing , and I test with browser , nothing is comming , connection refussed

and then I try :
apachectl status
I recieve :
ERROR at dump.c:188: Connection refused

arsham 05-13-2005 12:11 PM

after all ( I installed apache and expat again ) I recieved the first problem :
httpd failed. The error was: Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libexpat.so.0: failed to map segment from shared object: Permission denied

I noticed that maybe something's wrong with file : /usr/lib/libexpat.so.0
I did this :

/sbin/restorecon /usr/lib/libexpat.so.0

the only message I get now is apache failed to start and the permission problem is gone

arsham 05-13-2005 01:36 PM

Solved
for those , who have the same problem :

reinstall expat and apache
do : /sbin/restorecon /usr/lib/libexpat.so.0
edit httpd.conf
add this line
ServerName localhost

Regards

youreal 09-03-2007 12:33 PM

Quote:

Originally Posted by arsham (Post 1637048)
When I try in terminal as root :
apachectl start
I recieve nothing , and I test with browser , nothing is comming , connection refussed

and then I try :
apachectl status
I recieve :
ERROR at dump.c:188: Connection refused


i come across the problem same as yours
any ideas?

thx

arsham 09-04-2007 02:29 AM

I have kubuntu right now , but I believe that was lo lookup problem
As I said try adding :
ServerName localhost
To :
httpd.conf

Regards
Arsham


All times are GMT -5. The time now is 06:41 PM.