LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-13-2005, 10:50 AM   #1
nde
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Rep: Reputation: 0
apache fails to restart


Hello

I have inherited a debian server running apache. This server has been up for months withouth a proble/reboot. Today the web server is no longer responding to requests and using graceful restart or stop did not fix apache.


I went in to gracefully restart apachect1 but it would not recognize the command (a search revealed apachect1 in several different folders /usr/local/apache/bin and usr/sbin--neither recognized the command).


I then rebooted the box to see if this would correct the problem, and it notes

/usr/sbin/apachect1 could not be started

it also says "skipping 1 bad record, no valid reports found!"

I checked the error log, the only error in there for the last few days is a "cannot open mime type log", and these seem to have occured once I rebooted debian. Looking around online shutting down apache without graceful command may have been a bad idea. Hopefully this did not totally crash apache! Moving around in winscp and terminal window shows debian seems fine. This is probably the first time this server has rebooted in months, I have upgraded/updated debian on this server since being here, could this be the problem e.g. does apache config need to be updated?

Any ideas what is going on?
much thanks
 
Old 09-13-2005, 11:58 AM   #2
uopjohnson
Member
 
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159

Rep: Reputation: 30
try as root
Code:
/usr/sbin/apachectl stop
which might clean up any .pid files left lying around
and then
Code:
/usr/sbin/apachectl start
if you have apachectl in two places it may mean you have two installations of apache floating round your system. This is not necessarily a bad thing, however it would benifit you to know which one works and where its config files are kept. Do you only have one copy of http.conf?
 
Old 09-13-2005, 12:18 PM   #3
nde
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Yes, I have tried those commands but no luck.

I think this may be related to mime.types???

Also noticed some posts about debian sarge issue with apache on another forum
http://www.linuxforum.com/forums/ind...owtopic=155035

could this be the problem?
 
Old 09-13-2005, 12:45 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Check through your Apache config files for all directives related to mime types and logging. You might have a syntax error or typo.
 
Old 09-13-2005, 02:52 PM   #5
nde
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Original Poster
Rep: Reputation: 0
The error I am seeing now when trying to start/stop/restart apache now says

[warn] module config log module is already loaded, skipping

[warn] module mime module is already loaded, skipping

/usr/sbin/apachectl start: httpd could not be started
 
Old 09-13-2005, 04:48 PM   #6
nde
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Ends up the mime.types path was incorrect in httpd.conf.....changing that seems to have fixed apache, it started right up and is serving again.

Weird that the path somehow changed, but ahh well.
 
Old 09-13-2005, 05:04 PM   #7
uopjohnson
Member
 
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159

Rep: Reputation: 30
This, I think, probably goes back to you having multiple versions of apache installed. You should be wary that you have inadvertently started an old, and possibly unpatched, version of apache up.
 
Old 09-13-2005, 05:26 PM   #8
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 51
try
Code:
apachectl configtest
Remove the modules already loaded(ie you might include a line loadmodule test.so which is already loaded in for example the module configuration directory of apache)
 
  


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
Solution: ip-up fails to restart SuSEfirewall2 properly during PPTPD initialization Marc Linux - Networking 0 10-22-2005 01:00 PM
Samba server ok at boot, later fails to bind to IP. smbd restart doesn't help. tisource Linux - Networking 1 04-09-2005 09:16 AM
how do i apache restart? einstien Linux - General 3 03-30-2005 02:22 PM
GUI abruptly fails to load on restart JevidL Linux - General 1 08-30-2003 06:20 PM
How do I restart Apache? 360 Linux - Networking 2 08-25-2001 07:26 PM

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

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