LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-12-2017, 05:20 AM   #1
hkabir269
LQ Newbie
 
Registered: Jul 2017
Posts: 1

Rep: Reputation: Disabled
httpd.pid does not create at the time of starting the httpd


Hi Dear,
If possible please suggest me solve the following problem.
httpd starting failure.
httpd.pid is not created at the time of starting the httpd

httpd.conf is ok

[root@station ~]# httpd -t
Syntax OK
[root@station ~]# /etc/init.d/httpd start
Starting httpd: [FAILED]
[root@station ~]# service httpd start
Starting httpd: [FAILED]
[root@station ~]#

Humayun Kabir

Last edited by hkabir269; 07-12-2017 at 07:55 AM. Reason: to clarify the problem
 
Old 07-12-2017, 08:02 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,353
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
Regardless of that, can you tell if the httpd daemon is running? Perhaps the PID goes to a different file or location than you expect it to be put.

Did you use the "-k start" option to get it running? Or is it supposed to be started as a service?

If the daemon is not running, then perhaps you ought to use other flags like -e, -E or -X to debug a bit further.
 
Old 07-12-2017, 04:32 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,432

Rep: Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055
Quote:
Originally Posted by hkabir269 View Post
httpd.conf is ok

[root@station ~]# httpd -t
Syntax OK
[root@station ~]# /etc/init.d/httpd start
Starting httpd: [FAILED]
[root@station ~]# service httpd start
Starting httpd: [FAILED]
[root@station ~]#

Humayun Kabir
1) httpd -t only checks syntax, it does not validate that (for example) directory paths are valid. An invalid directory path will prevent httpd from starting.
2) (as has been mentioned) httpd won't start if it is already running. Do
Code:
ps -ef | grep httpd
to see if it's already running.
3) The reason it isn't started should be evident in the log files. They might (or might not, you didn't tell us what distro you're using) be
in
Code:
/var/log/httpd/
directory. The location is defined in your httpd.conf
 
Old 07-12-2017, 06:26 PM   #4
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 759

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Hi and welcome to LQ.
Did you spend some time web-researching the error (esp. if you want to learn Linux)?
Starting httpd: [FAILED]
Also, have a read of: http://www.linuxquestions.org/linux/...Ask_a_Question
Best wishes for success.
 
  


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
Starting httpd: /etc/init.d/httpd: line 40: 10243 Segmentation fault LANG=C grep RMLinux Linux - Newbie 10 12-01-2008 10:17 PM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
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
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:05 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration