Old 22nd January 2006, 12:37
namit namit is offline
Join Date: Jan 2006
Posts: 47
Thanks: 0
Thanked 1 Time in 1 Post
Default Apache just stops

Every so often say 1 time a week apache crashes on me i can not seam to restart it or get any responce of viewing websites.

When i try to restart it i get is

Reloading web server config...httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs

This just means i have to reboot the server and it works again but bit of pain when i have no access to computer and it goes down.

Can anyone help me?
Reply With Quote
Sponsored Links
Old 22nd January 2006, 13:22
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts

I have the same problem on a debian wood. It seems that the apache main process dies, but some child processes and the SSL apache process where still alive.

I've written a small php script that checks the apache logfile for the error, kills all remaining httpd processes and restarts apache. Its not a nice solution, but it works for me until i find the resaon why apache fails.


exec('grep "returned a Fatal error..." /var/log/apache/error.log > /tmp/apache_error_test.log');
if(filesize("/tmp/apache_error_test.log") > 0) {

        // killing apache processes
        exec("killall apache");

        // make a backup of the error logfile
        exec("cp /var/log/apache/error.log /var/log/apache/fatal_error.log");

        // empty the error log
        exec("cat /dev/null > /var/log/apache/error.log");


        // starting apache websrver
        exec("/etc/init.d/apache start");

I run this script as cronjob.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP/MySQL/Apache2/ISPConfig configuration issues? senzapaura General 21 25th December 2005 15:01
install apache 1.3 on FC 4 superg Server Operation 1 22nd December 2005 18:44
Strange Apache Error protocol Installation/Configuration 4 22nd November 2005 19:20
Apache instal woes acilis2k Installation/Configuration 14 17th November 2005 13:42
Apache 1.3 Support SleeperZ General 3 9th November 2005 12:10

All times are GMT +2. The time now is 07:37.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.