Это началось всего три недели назад. Содержание моего сайта не изменилось, это просто форум phpBB, использующий MySQL в качестве бэкэнда.
За год ничего не изменилось в том, что касается контента, обслуживаемых страниц и т. Д., Но в последнее время, каждые два дня или около того, сервер просто отключается и становится недоступным вообще (FTP, HTTP, MySQL), я должен уведомить мой поставщик услуг, чтобы физически перезагрузить машину.
Я думал, что это связано с этими ошибками SIGTERM, которые я нахожу в журналах, но в другом месте я обнаружил, что SIGTERM, вероятно, мой провайдер перезапускает сервер для меня.
Проблема в том, что я не знаю, как исправить подобные вещи или найти первопричину, так как мне не хватает навыков в этой области. Мой поставщик услуг в основном сказал мне, что они не предлагают той поддержки, которая мне нужна для пакета, который у меня есть (VPS), и что я в значительной степени владею ключами ко всему, и я сам по себе.
У кого-нибудь есть идеи, что может происходить?
Apache / 2.2.3 (CentOS)
20051115
Linux 2.6.18-028stab057.4 # 1 SMP Пт 1 августа 10:47:59 MSD 2008 x86_6
Информация из журнала ошибок (последнее действие, похоже, было в 5:01 с перезапуском поставщика услуг (SIGTERM) в 9:17):
[Sat Oct 31 00:08:22 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 00:21:41 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 00:23:04 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 00:25:56 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 00:42:45 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 00:42:52 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 03:10:39 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 03:37:01 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 03:37:32 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 04:17:42 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 06:04:54 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 09:45:55 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 10:15:41 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 10:15:49 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 10:29:44 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 10:30:59 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 10:31:03 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 10:55:04 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 11:14:45 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 11:20:55 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 11:47:44 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 12:00:35 2009] [error] [client 208.53.131.15] File does not exist: /var/www/vhosts/default/htdocs/phpMyAdmin [Sat Oct 31 12:07:30 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 13:01:07 2009] [error] [client 208.53.131.15] File does not exist: /var/www/vhosts/default/htdocs/phpmyadmin [Sat Oct 31 13:10:31 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 13:59:47 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 14:31:37 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 14:31:38 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 14:31:39 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 14:35:20 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 14:38:54 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 14:54:59 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 15:24:06 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 15:32:17 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 15:40:41 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 15:41:48 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 15:42:00 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 16:17:52 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 16:32:44 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 16:39:13 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 16:39:16 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 16:39:21 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 16:55:28 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 17:04:00 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 17:04:04 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 17:06:45 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 17:20:22 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 18:58:26 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 18:58:27 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 18:58:28 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 18:58:29 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 18:58:30 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 19:23:00 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 20:23:04 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 20:23:14 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 20:33:13 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 22:06:07 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 22:22:13 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sat Oct 31 23:57:50 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 00:15:29 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 00:27:25 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 00:27:44 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 00:28:47 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 00:29:44 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 00:59:58 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 01:06:05 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 01:42:22 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 02:31:26 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 02:31:40 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 02:31:59 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 05:07:17 2009] [notice] SIGHUP received. Attempting to restart WARNING: MaxClients of 256 exceeds ServerLimit value of 10 servers, lowering MaxClients to 10. To increase, please see the ServerLimit directive. [Sun Nov 01 05:07:17 2009] [notice] Digest: generating secret for digest authentication ... [Sun Nov 01 05:07:17 2009] [notice] Digest: done [Sun Nov 01 05:07:19 2009] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads. [Sun Nov 01 05:07:19 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Sun Nov 01 05:07:19 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Sun Nov 01 05:07:19 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Sun Nov 01 05:07:19 2009] [warn] Init: SSL server IP/port conflict: default-64-6-237-192:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:83) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:159) [Sun Nov 01 05:07:19 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Sun Nov 01 05:07:19 2009] [warn] WARNING: Attempt to change ServerLimit ignored during restart [Sun Nov 01 05:07:19 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Sun Nov 01 15:16:11 2009] [error] [client 127.0.0.1] Invalid method in request get [Sun Nov 01 15:18:53 2009] [notice] caught SIGTERM, shutting down [Sun Nov 01 15:19:27 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] Init: SSL server IP/port conflict: default-64-6-237-192:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:83) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:159) [Sun Nov 01 15:19:27 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Sun Nov 01 15:19:27 2009] [notice] Digest: generating secret for digest authentication ... [Sun Nov 01 15:19:27 2009] [notice] Digest: done [Sun Nov 01 15:19:27 2009] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads. [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] Init: SSL server IP/port conflict: default-64-6-237-192:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:83) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:159) [Sun Nov 01 15:19:27 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Sun Nov 01 15:19:27 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Sun Nov 01 16:42:31 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 16:47:25 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 16:59:22 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 17:37:42 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 17:44:54 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 17:44:55 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 17:44:56 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 18:14:45 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 18:40:30 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 20:10:59 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 20:35:10 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 20:43:07 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 20:43:46 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 21:25:39 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 21:26:03 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 21:56:57 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:21:02 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:25:16 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Sun Nov 01 22:25:17 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:25:18 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:25:20 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:25:21 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:25:22 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:46:47 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:52:56 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:56:07 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:56:51 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:56:58 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:00:41 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:09:59 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:23:49 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:27:14 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:36:25 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:54:06 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:12:44 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:12:50 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:13:23 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:39:06 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:52:50 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:53:02 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:13:38 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:13:39 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:13:40 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:23:01 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:43:47 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:45:51 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:46:27 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:47:25 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 02:23:02 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 02:25:37 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 02:25:38 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 02:52:29 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 02:52:51 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 03:49:29 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 03:49:48 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 04:35:33 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/README [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/horde [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/horde2 [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/horde3 [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/horde-3.0.9 [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/Horde [Mon Nov 02 04:46:02 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 05:01:06 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/README [Mon Nov 02 05:01:06 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/horde [Mon Nov 02 05:01:07 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/horde2 [Mon Nov 02 05:01:08 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/horde3 [Mon Nov 02 05:01:08 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/horde-3.0.9 [Mon Nov 02 05:01:09 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/Horde [Mon Nov 02 05:01:09 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 05:01:10 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 05:01:11 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 09:17:58 2009] [notice] caught SIGTERM, shutting down [Mon Nov 02 09:18:58 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] Init: SSL server IP/port conflict: default-64-6-237-192:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:83) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:159) [Mon Nov 02 09:18:58 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Mon Nov 02 09:18:58 2009] [notice] Digest: generating secret for digest authentication ... [Mon Nov 02 09:18:58 2009] [notice] Digest: done [Mon Nov 02 09:18:58 2009] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads. [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] Init: SSL server IP/port conflict: default-64-6-237-192:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:83) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:159) [Mon Nov 02 09:18:58 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Mon Nov 02 09:18:58 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Mon Nov 02 09:32:34 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/
Я не говорю, что это именно то, что происходит, но, исходя из моего собственного опыта в качестве администратора CentOS, это, скорее всего, сбежавшие процессы apache / php, вырывающие сервер. Я видел это много раз на CentOS 5. Это расстраивает, потому что обычно в файлах журналов нет никаких следов того, что произошло. Машина просто останавливается из-за того, что физическая память и своп поглощаются процессами apache / php. Вы могли бы подумать, что управление памятью Linux или какой-то демон вскочит и скажет «эй, стоп», но это не так. Это позволит apache остановить вашу систему.
Сказав это, чтобы увидеть, что происходит, вам понадобится что-то, что может отслеживать и регистрировать использование ресурсов. Мне нравится использовать программу под названием поверх. Программа Atop очень похожа на программу top, но также делает снимок использования ресурсов через определенные промежутки времени. Установить довольно просто.
wget http://www.atcomputing.nl/Tools/atop/packages/atop-1.23.tar.gz
tar -zxvf atop-1.23.tar.gz
cd atop-1.23 && make install
открыто /etc/atop/atop.daily
с текстовым редактором и изменить INTERVAL=600
к INTERVAL=60
Запустите команду /etc/atop/atop.daily
из командной строки, чтобы запустить его. Подождите несколько минут и бегите atop -r /var/log/atop/atop_20091118
конечно с правильной датой.
Ударь т ключ, чтобы идти вперед во времени и Т идти обратно. В следующий раз, когда ваш сервер выйдет из строя, сделайте это и проверьте MEM free
и SWP free
линий. Если у вас проблемы с памятью, они будут красного цвета. Также ищите многочисленные httpd
линии под CMD
. Если ваша проблема - apache / php, их будет много.
В этом случае рекомендую посмотреть на вас MaxClients
установка в httpd.conf
. Если установлено слишком большое значение, apache с радостью съест всю вашу память, что приведет к сбою вашей машины. Apache / php запросто может съесть 40-50МБ / процесс. Если умножить 40mb x MaxClients
вы получите приблизительное представление о том, сколько памяти потенциально может использовать apache. MaxClients
обычно в CentOS по умолчанию установлено значение 150, поэтому apache потенциально может использовать 6 ГБ памяти по умолчанию. Сюда не входит память, необходимая вашей системе для работы самой системы и других процессов. Попробуйте установить более реалистичное значение в зависимости от имеющегося у вас объема памяти, например 40, если у вас 2 ГБ памяти, и посмотрите, поможет ли это. Также, если у вас есть KeepAlive On
, устанавливать KeepAliveTimeout
на небольшое количество, например 2
или 3
.
На мой взгляд, компиляция Apache / php в CentOS - это настоящая идея, которая никогда не должна была увидеть свет. Он глючит и подвержен сбоям. Если у вас серьезный сайт, я настоятельно рекомендую скомпилировать свою собственную версию apache / php или даже использовать один из новых высокопроизводительных веб-серверов, таких как lighttpd или nginx с fgci php.
установите chkrootkit на свой компьютер и запустите его
посмотрите, что говорят dmesg и / var / log / messages - ни один из них не должен быть пустым, если они есть, есть проблема
Это может быть сложно отследить. Первое, что я бы проверил, это dmesg на предмет признаков сбоев записи на диск, возможного повреждения памяти или ошибок ядра, связанных с отказом оборудования. Периодически проверяйте «верхнюю часть» на предмет процессов, которые могут работать безумно, а также «свободную», чтобы проверить признаки нехватки памяти или чрезмерного использования подкачки. Если виртуальная машина имеет какую-либо подключенную виртуальную последовательную консоль, вы можете получить выходные данные или иным образом добраться до виртуальной машины, когда она недоступна, что поможет диагностировать проблемы. Также не проверяйте дисковое пространство df только для того, чтобы убедиться, что у вас нет свободного места / подкачки, так как это может вызвать какое-то странное поведение.
Кроме того, если на самом деле ничего не изменилось и вы не выполняете другую загрузку кода / процесса, вам следует следить за нераспознанными процессами (ps -auxf) или наличием файлов в структуре каталогов, которые могут указывать на то, что ваш виртуальный хост был взломан, и вы просто страдаете от последствий взлома или даже от нестандартных модулей ядра (lsmod). Если вы не будете тщательно поддерживать свой сайт, всегда возможно, что он стал жертвой либо известной уязвимости в общедоступной службе, либо атаки методом грубой силы для удаленного управления.
Если все ваши службы исчезают (FTP, HTTP и т. Д.), Ваша проблема связана с хостом, а не с Apache.
Вы, как VPS, уверены, что это не интенсивный процесс, который эффективно блокирует машину? Проверьте cron на наличие запланированных заданий:
crontab -l
Также начните искать в своих системных журналах:
/ var / log / сообщение и т. д.