LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-19-2008, 11:07 AM   #1
jonboede
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?

Thanks,
Jon
 
Old 02-19-2008, 11:45 AM   #2
jonboede
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.
 
  


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 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 07:24 AM
problem in starting httpd service!! mhmo Linux - Server 1 03-17-2007 07:01 AM
service httpd fails Red Squirrel Linux - Software 3 07-02-2006 03:22 PM
starting httpd as service strimp099 Red Hat 10 04-12-2004 07:38 PM
httpd service not starting... F$CK!!! xgtr Slackware 1 08-20-2002 03:13 PM


All times are GMT -5. The time now is 03:38 AM.

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