Перестал работать apache [РЕШЕНО]
ClearKbdBuf 20 июля, 2010 - 10:43
Добрый день!
Столкнулся со следующей проблемой при запуске apache: когда запускаю, присходит вот что:
officemanager apache2 # /etc/init.d/apache2 start * WARNING: apache2 has already been started.
Как видно из приведенного фрагмента, он работает, однако web-узлы не доступны.
Если перезапустить, то получается вот что:
officemanager apache2 # /etc/init.d/apache2 restart * Stopping apache2 ... httpd (no pid file) not running [ ok ] * Starting apache2 ... [ ok ]
Работоспособность не восстанавливается.
В логах как-то все странно, например в /var/log/messages пусто, а в /var/log/apache2/error_log^
officemanager apache2 # cat error_log [Mon Jul 12 18:08:46 2010] [error] [client 192.168.1.37] File does not exist: /home/www/cacti/favicon.ico [Mon Jul 12 18:08:57 2010] [error] [client 192.168.1.37] File does not exist: /home/www/cacti/favicon.ico [Tue Jul 13 04:07:45 2010] [notice] caught SIGTERM, shutting down [Tue Jul 13 04:07:48 2010] [notice] Apache/2.2.11 (Unix) PHP/5.2.10-pl0-gentoo mod_ssl/2.2.11 OpenSSL/0.9.8l configured -- resuming normal operations [Tue Jul 13 12:22:48 2010] [error] [client 192.168.1.13] File does not exist: /home/www/cacti/favicon.ico [Tue Jul 13 12:22:51 2010] [error] [client 192.168.1.13] File does not exist: /home/www/cacti/favicon.ico [Wed Jul 14 04:18:44 2010] [warn] child process 8519 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:45 2010] [warn] child process 18223 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:45 2010] [warn] child process 14438 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:45 2010] [warn] child process 4801 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:45 2010] [warn] child process 6737 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:45 2010] [warn] child process 27544 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:45 2010] [warn] child process 1729 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:45 2010] [warn] child process 13638 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:45 2010] [warn] child process 19937 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:45 2010] [warn] child process 23474 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:47 2010] [warn] child process 8519 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:47 2010] [warn] child process 18223 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:47 2010] [warn] child process 14438 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:47 2010] [warn] child process 4801 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:47 2010] [warn] child process 6737 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:47 2010] [warn] child process 27544 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:47 2010] [warn] child process 1729 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:47 2010] [warn] child process 13638 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:47 2010] [warn] child process 19937 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:47 2010] [warn] child process 23474 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:49 2010] [warn] child process 8519 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:49 2010] [warn] child process 18223 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:49 2010] [warn] child process 14438 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:49 2010] [warn] child process 4801 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:49 2010] [warn] child process 6737 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:49 2010] [warn] child process 27544 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:49 2010] [warn] child process 1729 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:49 2010] [warn] child process 13638 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:49 2010] [warn] child process 19937 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:49 2010] [warn] child process 23474 still did not exit, sending a SIGTERM [Wed Jul 14 04:18:51 2010] [notice] caught SIGTERM, shutting down [Wed Jul 14 04:18:54 2010] [notice] Apache/2.2.11 (Unix) PHP/5.2.10-pl0-gentoo mod_ssl/2.2.11 OpenSSL/0.9.8l configured -- resuming normal operations [Wed Jul 14 19:39:41 2010] [notice] caught SIGTERM, shutting down [Wed Jul 14 19:39:46 2010] [notice] Apache/2.2.11 (Unix) PHP/5.2.10-pl0-gentoo mod_ssl/2.2.11 OpenSSL/0.9.8l configured -- resuming normal operations [Thu Jul 15 12:04:17 2010] [error] [client 192.168.1.50] File does not exist: /home/www/cacti/favicon.ico [Thu Jul 15 12:04:19 2010] [error] [client 192.168.1.50] File does not exist: /home/www/cacti/favicon.ico [Thu Jul 15 13:34:45 2010] [error] [client 192.168.1.13] File does not exist: /home/www/cacti/favicon.ico [Thu Jul 15 13:34:48 2010] [error] [client 192.168.1.13] File does not exist: /home/www/cacti/favicon.ico [Thu Jul 15 18:26:05 2010] [notice] caught SIGTERM, shutting down [Thu Jul 15 18:26:10 2010] [notice] Apache/2.2.11 (Unix) PHP/5.2.10-pl0-gentoo mod_ssl/2.2.11 OpenSSL/0.9.8l configured -- resuming normal operations [Fri Jul 16 11:57:03 2010] [error] [client 192.168.1.37] File does not exist: /home/www/cacti/favicon.ico [Fri Jul 16 12:21:38 2010] [error] [client 192.168.1.13] File does not exist: /home/www/cacti/favicon.ico [Fri Jul 16 12:21:41 2010] [error] [client 192.168.1.13] File does not exist: /home/www/cacti/favicon.ico [Mon Jul 19 10:17:22 2010] [notice] caught SIGTERM, shutting down [Mon Jul 19 10:17:27 2010] [error] [client 192.168.1.50] File does not exist: /usr/share/nagios/htdocs/favicon.ico [Mon Jul 19 10:17:27 2010] [notice] Apache/2.2.11 (Unix) PHP/5.2.10-pl0-gentoo mod_ssl/2.2.11 OpenSSL/0.9.8l configured -- resuming normal operations [Mon Jul 19 12:30:08 2010] [error] [client 192.168.1.13] File does not exist: /home/www/cacti/favicon.ico [Mon Jul 19 18:25:31 2010] [notice] caught SIGTERM, shutting down [Mon Jul 19 18:28:02 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed [Mon Jul 19 18:30:23 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed [Tue Jul 20 12:06:34 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed [Tue Jul 20 12:07:52 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed [Tue Jul 20 12:08:09 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed [Tue Jul 20 12:12:59 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed [Tue Jul 20 12:13:21 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed [Tue Jul 20 10:02:59 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed [Tue Jul 20 10:03:13 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed [Tue Jul 20 10:39:17 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed [Tue Jul 20 10:39:41 2010] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "officemanager" Configuration Failed
Я так понимаю причина в mod_unique_id, который не может найти IPv4 адрес, но я ничего не менял.
Подскажите, пожалуйста, в какую сторону копать.
С уважением!
»
- Для комментирования войдите или зарегистрируйтесь
РЕШЕНО
Добавил в /etc/hosts запись
Все заработало
http://clearkbdbuf.livejournal.com
Помогло!
А у меня было "Name or service not known: mod_unique_id: unable to find IPv4 address of "www" ....."
В файле HOSTS было
89.188.***.*** my.domain.ru my
изменил на
89.188.***.*** my.domain.ru www
и заработало!