> -----Original Message----- > From: AussieJohn [mailto:aussiejohn@xxxxxxxxx] > Sent: Montag, 27. Juni 2005 05:47 > To: users@xxxxxxxxxxxxxxxx > Subject: [users@httpd] Apache dies unexpectedly > > > Hey list, > > For the past few days I have been having terrible problems with my > Apache 2 server. > > Problem: > Apache dies unexpected and out of the blue. e.g. I came to work this > (monday) morning, > and found my webserver died about half an hour before I even got into > the office. > Every so often (seemingly random times...) therewill be entries in the > error_log saying: > [notice] caught SIGTERM, shutting down > [notice] Apache/2.0.54 (Unix) PHP/4.3.11 configured -- resuming normal > operations SIGTERM is the standard unix signal to kill a process. This is exactly the log message you get if you type "apachectl stop" or "kill <PID>". So something must be doing this... You say the times are random - are you certain? Check in the crontab for root to see if there is a forgotten instruction to stop apache (check all the other crontabs if apache doesn't start as root). I notice below that the SIGTERM is followed immediately by a start and then by another SIGTERM - could there be a rogue daemon running - maybe to rotate logs or something? Check it out. Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. > > Up until the point it dies (just said "caugh SIGTERM' nothing else), > this is what keeps happening. > > So I changed the LogLevel to debug, and have been monitoring it > closely today, and the only thing > I see just before the server dies is a "removed PID file" message. > > If anyone can help me with this, it would be greatly appreciated, as > my only option will > be to wipe apache and start with a fresh server (not very keen on > doing that...). > > Please find some extra info below.... > > Info: > PHP Version: 4.3.11 > OS: Fedora Core 2 (Linux 2.6.5-1.358) > Apache Details: > [root@jack logs]# ../bin/apachectl -V > Server version: Apache/2.0.54 > Server built: Apr 18 2005 14:28:22 > Server's Module Magic Number: 20020903:9 > Architecture: 32-bit > Server compiled with.... > -D APACHE_MPM_DIR="server/mpm/prefork" > -D APR_HAS_SENDFILE > -D APR_HAS_MMAP > -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) > -D APR_USE_SYSVSEM_SERIALIZE > -D APR_USE_PTHREAD_SERIALIZE > -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT > -D APR_HAS_OTHER_CHILD > -D AP_HAVE_RELIABLE_PIPED_LOGS > -D HTTPD_ROOT="/usr/local/apache2" > -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" > -D DEFAULT_PIDLOG="logs/httpd.pid" > -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" > -D DEFAULT_LOCKFILE="logs/accept.lock" > -D DEFAULT_ERRORLOG="logs/error_log" > -D AP_TYPES_CONFIG_FILE="conf/mime.types" > -D SERVER_CONFIG_FILE="conf/httpd.conf" > > > Tail of error log: > > [root@jack logs]# cat error_log > [Mon Jun 27 12:57:50 2005] [info] removed PID file > /usr/local/apache2/logs/httpd.pid (pid=8618) > [Mon Jun 27 12:57:50 2005] [notice] caught SIGTERM, shutting down > [Mon Jun 27 12:58:21 2005] [notice] Apache/2.0.54 (Unix) PHP/4.3.11 > configured -- resuming normal operations > [Mon Jun 27 12:58:21 2005] [info] Server built: Apr 18 2005 14:28:22 > [Mon Jun 27 12:58:21 2005] [debug] prefork.c(956): AcceptMutex: > sysvsem (default: sysvsem) > [Mon Jun 27 12:58:26 2005] [info] removed PID file > /usr/local/apache2/logs/httpd.pid (pid=8666) > [Mon Jun 27 12:58:26 2005] [notice] caught SIGTERM, shutting down > > Mind you - nothing was being done on the server (well, the server is > in fact my workstation, alas, the webserver was not in use at the time > when the errors were logged). > > This has been happening for almost 4 or 5 days now, and for > no apparent reason. > > If you wish to email me directly at > aussiejohn[at]gmail[dot]com feel free to. > > Cheerz, > > John V. > > > -- > "If you really want something in this life, you have to work for it. > Now, quiet! They're about to announce the lottery numbers..." > - Homer Simpson > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP > Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX. This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx