ok every day I get this error and it shuts down apache.. Code: Cron test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) /etc/cron.daily/logrotate: [Sun Dec 16 06:27:56 2007] [warn] NameVirtualHost 192.168.1.1:80 has no VirtualHosts [Sun Dec 16 06:27:56 2007] [warn] NameVirtualHost *:0 has no VirtualHosts [Sun Dec 16 06:28:06 2007] [warn] NameVirtualHost 192.168.1.1:80 has no VirtualHosts [Sun Dec 16 06:28:06 2007] [warn] NameVirtualHost *:0 has no VirtualHosts (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs error: error running shared postrotate script for /var/log/apache2/*.log run-parts: /etc/cron.daily/logrotate exited with return code 1 I wake up and the apache is down and i have like 10 emails from the system telling me that its down can someone please help
I also found these errors in the apache logs [Sun Dec 16 13:32:04 2007] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations [Sun Dec 16 18:46:12 2007] [notice] Graceful restart requested, doing restart [Sun Dec 16 18:46:12 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket) [Sun Dec 16 18:46:14 2007] [warn] NameVirtualHost *:0 has no VirtualHosts PHP Warning: Module 'json' already loaded in Unknown on line 0 [Sun Dec 16 18:46:26 2007] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations [Sun Dec 16 18:46:26 2007] [warn] long lost child came home! (pid 4556)
Are you using the IP address 0.0.0.0 somewhere in your Apache configuration? What's the output of Code: apache2 -t ?