LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-06-2007, 09:26 AM   #1
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Apache won't start


Code:
[root@boxboro ~]# apachectl configtest
Syntax OK
[root@boxboro ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [FAILED]
[root@boxboro ~]# ps aux | grep httpd | grep -v grep
[root@boxboro ~]#
It was running fine on port 80. I wanted to move it to port 8000. i changed iptables and httpd to those values, and restarted iptables service OK. upon restarting httpd, that's the message i get.

What's wrong?

Last edited by jhwilliams; 11-06-2007 at 09:28 AM.
 
Old 11-06-2007, 10:19 AM   #2
soonblue
LQ Newbie
 
Registered: Oct 2007
Posts: 8

Rep: Reputation: 0
It's possible that you have conflicting listening ports in your httpd.conf file. Please post this plus your Apache error log, usually located at /var/log/httpd/error_log

Thanks!
 
Old 11-06-2007, 11:28 AM   #3
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Original Poster
Rep: Reputation: 211Reputation: 211Reputation: 211
The only line mentioning a port in question is:
Code:
[root@boxboro httpd]# grep "80" conf*/*.conf | egrep -v ".*conf:#.*"
conf/httpd.conf:Listen 8000
My /var/log/httpd/error_log is not catching errors from my restart attempts. Anytime I try to restart the apache deamon, nothing new is put in the log.

I can't even start httpd manually:

Code:
[root@boxboro httpd]# httpd -e DEBUG
[root@boxboro httpd]# ps aux | grep httpd | grep -v grep
[root@boxboro httpd]#
I'll save you my httpd.conf file, nothing in it is non-standard at the moment.

Last edited by jhwilliams; 11-06-2007 at 11:37 AM.
 
Old 11-07-2007, 12:22 AM   #4
soonblue
LQ Newbie
 
Registered: Oct 2007
Posts: 8

Rep: Reputation: 0
You've probably tried this already but it's just something else to try. I'll have more for you tomorrow.

Try starting the Apache service using apachectl start
 
Old 11-07-2007, 09:20 PM   #5
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Original Poster
Rep: Reputation: 211Reputation: 211Reputation: 211
I have indeed tried that, I'm afraid. No luck.

I just removed httpd.conf, and reinstalled apache. The problem still persists. What now?

Thanks!
 
Old 11-08-2007, 12:01 AM   #6
complich8
Member
 
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104

Rep: Reputation: 17
one of the problems I've seen that prevents apache from starting and from logging meaningfully is when the log directory or logfiles aren't actually writable by the apache user. If they are, it should at least give a message in the error_log when you try to start or stop apache.

So that's my suggestion. Check the permissions on your logdir and logfiles and make sure the partition the logs are being written to isn't mounted read-only or otherwise rendered unwritable (eg: full). Also make sure that it can write its pidfile somewhere.
 
  


Reply



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
Apache will start texmansru47 Linux - Software 5 10-03-2005 08:32 AM
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 09:51 AM
Apache 1.3.33 will not start bhussung Slackware 2 12-20-2004 10:22 AM
can't get SSLl working on Apache. Apache won't start bentman78 Linux - Software 1 08-10-2003 06:17 PM
Apache 2.0.45 does not start arkopolo Linux - Software 1 07-08-2003 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:09 AM.

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