LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-17-2005, 09:57 PM   #1
jordanthompson
Member
 
Registered: Oct 2004
Posts: 115

Rep: Reputation: 15
apache server shuts down for unknown reason


I am running core 2 with all of the latest patches/updates. My apache (2.0 - I think) server has suddenly decided to turn itself off every once and a while. I started to look in the logs, but could not find anything worth while (which log? - I could not find one called apache or httpd.)

For now, I have added a cron job in /etc/cron.hourly that does:
/usr/sbin/apachectl start

but this is not a very good solution :-(

thanks for your help,
Jordan
 
Old 01-17-2005, 10:07 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Okay first of all, try to narrow the times down. And there should be something in your logs, not necessarily your apache logs but your syslogs perhaps even.

And no, running a cron script hourly just to start the service is bad, at least do a restart so it doesn't affect your system if its invoked when apache is already running.

And if you really want to keep your cron job going to restart.. you should really think about a script that checks for the apache process, if its running, do nothing.. if its not found, then start apache.
 
Old 01-18-2005, 06:20 AM   #3
jordanthompson
Member
 
Registered: Oct 2004
Posts: 115

Original Poster
Rep: Reputation: 15
Thanks for the tip to use restart - I did it.
I had checked the syslog and did not see anything pertitnant (what should I be looking for?)
 
Old 01-18-2005, 09:15 PM   #4
jordanthompson
Member
 
Registered: Oct 2004
Posts: 115

Original Poster
Rep: Reputation: 15
Here's what I am getting now when I do a restart:
[root@dot log]# /usr/sbin/apachectl restart
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs

and a stop/start:
[root@dot log]# /usr/sbin/apachectl stop
httpd (pid 17724?) not running
[root@dot log]# /usr/sbin/apachectl start
(98)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs

The funny thing is that I can still access my web pages!

Any suggestions of where to look in the logs?

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
fedora server shuts down for no apparent reason jordanthompson Linux - General 9 09-10-2005 01:54 PM
apache failing to start for strange reason Snerkel Linux - Software 10 10-02-2004 08:56 PM
startx error: vesa(0) unknown reason for exception pi314159 Slackware 1 12-04-2003 08:13 AM
Some programs dying for unknown reason jonnieo Linux - Newbie 8 07-24-2003 01:09 PM
reason for separating web server and database server hardigunawan Linux - Security 5 01-25-2003 12:45 PM


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