LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-10-2005, 11:29 PM   #1
arsham
Member
 
Registered: Mar 2004
Location: London
Distribution: Arch Linux, Debian
Posts: 184

Rep: Reputation: 30
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
 
Old 05-11-2005, 12:31 AM   #2
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
What happens when you try this in a terminal
Code:
sudo apachectl start
Same error?
 
Old 05-11-2005, 12:32 AM   #3
Massif
LQ Newbie
 
Registered: May 2005
Distribution: Trustix
Posts: 10

Rep: Reputation: 0
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?
 
Old 05-11-2005, 03:13 AM   #4
arsham
Member
 
Registered: Mar 2004
Location: London
Distribution: Arch Linux, Debian
Posts: 184

Original Poster
Rep: Reputation: 30
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
 
Old 05-11-2005, 10:11 AM   #5
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
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.
 
Old 05-11-2005, 11:44 AM   #6
arsham
Member
 
Registered: Mar 2004
Location: London
Distribution: Arch Linux, Debian
Posts: 184

Original Poster
Rep: Reputation: 30
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
 
Old 05-13-2005, 12:11 PM   #7
arsham
Member
 
Registered: Mar 2004
Location: London
Distribution: Arch Linux, Debian
Posts: 184

Original Poster
Rep: Reputation: 30
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
 
Old 05-13-2005, 01:36 PM   #8
arsham
Member
 
Registered: Mar 2004
Location: London
Distribution: Arch Linux, Debian
Posts: 184

Original Poster
Rep: Reputation: 30
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
 
Old 09-03-2007, 12:33 PM   #9
youreal
LQ Newbie
 
Registered: Feb 2006
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by arsham View Post
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
 
Old 09-04-2007, 02:29 AM   #10
arsham
Member
 
Registered: Mar 2004
Location: London
Distribution: Arch Linux, Debian
Posts: 184

Original Poster
Rep: Reputation: 30
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
 
  


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
cant start httpd mag_um Linux - Software 2 05-27-2005 08:20 AM
manual start httpd treotan Fedora 2 12-08-2004 08:08 PM
httpd-2.0.50-1.0 won't start RH9 jariep Red Hat 5 08-21-2004 02:10 AM
httpd service stop fails, no pid, this after latest update squadja Red Hat 2 08-11-2004 02:29 PM
httpd will not start :: buddy Linux - General 9 12-31-2002 12:45 PM


All times are GMT -5. The time now is 03:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration