konto usunięte
Temat: Interpretacja logów i rozwiązanie problemu
Witam,w ostatnich kilku dniach usługa /usr/bin/php niespodziewanie zaczęła przeciążać mój serwer. Procesor jest użyty w 100%, a w logach mam co chwilę następujące wpisy.
Co 20-40sek:
[Fri Jun 3 01:29:00 2011] [error] (12)Cannot allocate memory: exec of /usr/local/cpanel/cgi-sys//php5 failed
Raz na 4h:
[Sun Jun 5 13:02:36 2011] [notice] SIGUSR1 received. Doing graceful restart
[Sun Jun 5 13:02:39 2011] [notice] Apache/1.3.42 (Unix) PHP/4.4.8 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a configured -- resuming normal operations
[Sun Jun 5 13:02:39 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Sun Jun 5 13:02:39 2011] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sun Jun 5 13:02:40 2011] [warn] long lost child came home! (pid 16011)
Problem w tym, że pojawia się on średnio raz na 3-4h.
(jak rozumiem jest to restart serwera www)
I dwa (jak domyślam się) ataki po 3 minuty: (~2730 żądań/min)
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/db/phpMyAdmin-2.6.0-alpha2/main.php
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/administrator/phpMyAdmin-3.0.4/main.php
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/administrator/phpMyAdmin-3.0.5/main.php
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/admin/pma/read_dump.phpmain.php
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/administrator/phpMyAdmin-3.0.5/main.php
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/db/phpMyAdmin-2.6.0-beta1/main.php
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/administrator/phpMyAdmin-3.0.6/main.php
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/admin/pma2005/main.php
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/administrator/phpMyAdmin-3.0.6/main.php
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/db/phpMyAdmin-2.6.0-beta2/main.php
[Sun Jun 5 02:55:22 2011] [error] [client 92.68.228.174] File does not exist: /usr/local/apache/htdocs/administrator/phpMyAdmin-3.0.7/main.php
Jak można rozwiązać ten problem?