LinuxQuestions.org
Visit the LQ Articles and Editorials 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 04-19-2004, 11:26 AM   #1
k_1701
LQ Newbie
 
Registered: Jun 2003
Location: Colorado
Distribution: Red Hat 9
Posts: 5

Rep: Reputation: 0
Apache httpd start failed on fedora core 1


I am trying to get the webserver going on my development computer so I can work on the new Beta I am doing for my companies website. I go to the services window and set it to start httpd, I then restart my computer and lo and behold, absolutly nothing happens. I go back into services and attempt to start it, and it says, "Starting httpd: failed"

Next i try running httpd from the init.d folder and it gives me the same thing. No matter how hard I try, it won't start, or even give me a meaningful error message.

I am running Fedora Core 1.

Thanks in advance.
 
Old 04-19-2004, 11:37 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Have you checked your logs at all? What about trying a apachectl configtest to test your httpd.conf file? What version of apache? What error do you get when attempting to run from the command line and what command are you using to start it?
 
Old 04-19-2004, 11:39 AM   #3
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
can you copy the relvant lines of error.log you will find this file in /var/log/ or if you install apache from source then in apache2/logs/ directory
 
Old 05-03-2006, 04:21 PM   #4
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 5.10 Ubuntu 12.4 MacOS 10.9
Posts: 113

Rep: Reputation: 17
I have the same problem after installing FC3. It was installed in the same computer and running. I clean reinstalled it again.
apachectl configtest: syntax OK. All ways to start httpd:all answers were the same cold "httpd startup failed".
 
Old 05-04-2006, 04:28 AM   #5
lurker79
Member
 
Registered: Jan 2005
Location: UK
Posts: 55

Rep: Reputation: 16
Is there anything in the log file /var/log/messages anything in apache's error log.
If the configuration syntax is ok, check permissions and aaccess controls on configuration file, log files and document root.
If you have selinux enabled on this machine check that you files have the correct selinux context or temporarily disable it and try to start the webserver.
I have also seen apache fail to start if you have specified a log file location that does not exist, so check your syntax against your filesystem structure.
Any error messages you think are relevant, please post here so people can assist you.
 
Old 05-04-2006, 04:59 AM   #6
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
What if you try to restart it? Does that work?
I'm just thinking that it's already running so that's why the start is failing. Try to check whether it's running or not:
Code:
/etc/init.d/apache2 status (or where your apache is located)
OR
ps aux| grep httpd
 
Old 05-04-2006, 03:19 PM   #7
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 5.10 Ubuntu 12.4 MacOS 10.9
Posts: 113

Rep: Reputation: 17
I've just installed all available updates for fedora3, including httpd
Reboot: all services green started, httpd red failed.
SELINUX=disabled
apachectl configtest -> Syntax OK
Apache 2
/var/log/messages displays three lines:
ntpd[3215]: synchronized to LOCAL(0), stratum 10
ntpd[3215]: synchronized to LOCAL(0), kernel time sync disabled 0041
httpd: httpd startup failed

ps aux| grep httpd
root 4376 0.0 0.1 3728 680 pts/1 S+
Thanks for your help
 
Old 05-04-2006, 04:45 PM   #8
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 5.10 Ubuntu 12.4 MacOS 10.9
Posts: 113

Rep: Reputation: 17
I did not browse /etc/httpd/conf/error-log
Log dir was not created.
 
Old 05-04-2006, 04:45 PM   #9
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 5.10 Ubuntu 12.4 MacOS 10.9
Posts: 113

Rep: Reputation: 17
I did not browse /etc/httpd/conf/error-log
Log dir was not created.
 
Old 05-05-2006, 04:05 AM   #10
lurker79
Member
 
Registered: Jan 2005
Location: UK
Posts: 55

Rep: Reputation: 16
can you post your config file
 
Old 05-05-2006, 07:40 AM   #11
marciano
Member
 
Registered: Oct 2005
Location: Uruguay
Distribution: CentOS 5.10 Ubuntu 12.4 MacOS 10.9
Posts: 113

Rep: Reputation: 17
Sorry if I was not clear.
I solve the problem.
/etc/httpd/conf/error-log informed that a log directory was not found, so I created it. Thanks.
 
  


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
httpd won't start?? [Failed] flipside Linux - Software 8 05-21-2006 07:13 AM
PHP5 & HTTPD (apache) on Fedora Core 4 fatum112 Linux - Software 4 12-02-2005 05:44 PM
Apache httpd won't start rob19 Linux - Software 6 05-06-2003 10:41 PM
httpd won't start (apache 2.0 newly installed) Who Linux - Software 1 03-28-2003 08:06 AM
Apache problem - httpd won't start. Iced_Falcon Linux - Networking 3 12-22-2001 04:31 PM


All times are GMT -5. The time now is 04:18 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