Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-19-2008, 12:07 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 7

Rep: Reputation: 0
service start httpd fails, manually starting with same command works

I have the latest CentOS distribution and when I:

service start httpd

It says [FAILED].

However if I:

. /etc/rc.d/init.d/functions

And then

LANG=C daemon /usr/sbin/httpd

(which is exactly what the start() function in /etc/init.d/httpd does)

It works.

RETVAL from the start() flavor of this is coming up as 1 from $?.

No error message is produced.

How do you debug something like this, when typing the exact same command manually works?

Old 02-19-2008, 12:45 PM   #2
LQ Newbie
Registered: Feb 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Add -E somefile to start() command...

And it will show you the errors that are causing the problem.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 08:24 AM
problem in starting httpd service!! mhmo Linux - Server 1 03-17-2007 08:01 AM
service httpd fails Red Squirrel Linux - Software 3 07-02-2006 04:22 PM
starting httpd as service strimp099 Red Hat 10 04-12-2004 08:38 PM
httpd service not starting... F$CK!!! xgtr Slackware 1 08-20-2002 04:13 PM

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