tempo limite do apache?

0

Eu tenho um servidor dedicado com o apache2. recentemente o apache começou a morrer quando o site não está sendo usado.

exemplo ontem 08:00 eu estava fazendo alguma programação no site tudo funcionou bem. hoje, 10 da manhã, quando eu tentei logar, ele me deu a mensagem "server something.com was to slow to load"

agora, uma vez que eu uso o serviço apache2 restart ele funciona bem novamente! Eu sou muito novo para isso, alguém pode me dizer o que procurar?

também tentei verificar a versão do apache2 instalada e em vez disso recebi a seguinte mensagem:

    [Thu May 05 12:14:26.037129 2016] [core:warn] [pid 19057] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Thu May 05 12:14:26.037154 2016] [core:warn] [pid 19057] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Thu May 05 12:14:26.037162 2016] [core:warn] [pid 19057] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Thu May 05 12:14:26.037179 2016] [core:warn] [pid 19057] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Thu May 05 12:14:26.037186 2016] [core:warn] [pid 19057] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu May 05 12:14:26.043258 2016] [core:warn] [pid 19057] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
[Thu May 05 12:14:26.043438 2016] [core:warn] [pid 19057] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu May 05 12:14:26.043540 2016] [core:warn] [pid 19057] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu May 05 12:14:26.043546 2016] [core:warn] [pid 19057] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

errorlog:

    [Thu May 05 12:27:24.550119 2016] [:error] [pid 19189] [client 5.154.190.132:47417] PHP  12. WP_Http_Streams->request() /var/www/somesite.com/public_html/wp-includes/class-http.php:433
[Thu May 05 12:27:24.550222 2016] [:error] [pid 19189] [client 5.154.190.132:47417] PHP  13. stream_socket_client() /var/www/somesite.com/public_html/wp-includes/class-wp-http-streams.php:150
[Thu May 05 12:28:01.156910 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP Warning:  stream_socket_client(): unable to connect to tcp://www.slscxhz66.com:80 (Connection timed out) in /var/www/somesite.com/public_html/wp-includes/class-wp-http-streams.php on line 150
[Thu May 05 12:28:01.157231 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP Stack trace:
[Thu May 05 12:28:01.157549 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP   1. {main}() /var/www/somesite.com/public_html/xmlrpc.php:0
[Thu May 05 12:28:01.157871 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP   2. wp_xmlrpc_server->serve_request() /var/www/somesite.com/public_html/xmlrpc.php:84
[Thu May 05 12:28:01.158041 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP   3. IXR_Server->IXR_Server() /var/www/somesite.com/public_html/wp-includes/class-wp-xmlrpc-server.php:197
[Thu May 05 12:28:01.158209 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP   4. IXR_Server->__construct() /var/www/somesite.com/public_html/wp-includes/class-IXR.php:440
[Thu May 05 12:28:01.158586 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP   5. IXR_Server->serve() /var/www/somesite.com/public_html/wp-includes/class-IXR.php:432
[Thu May 05 12:28:01.158964 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP   6. IXR_Server->call() /var/www/somesite.com/public_html/wp-includes/class-IXR.php:470
[Thu May 05 12:28:01.159293 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP   7. wp_xmlrpc_server->pingback_ping() /var/www/somesite.com/public_html/wp-includes/class-IXR.php:520
[Thu May 05 12:28:01.159487 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP   8. wp_safe_remote_get() /var/www/somesite.com/public_html/wp-includes/class-wp-xmlrpc-server.php:6306
[Thu May 05 12:28:01.159746 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP   9. WP_Http->get() /var/www/somesite.com/public_html/wp-includes/http.php:70
[Thu May 05 12:28:01.159921 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP  10. WP_Http->request() /var/www/somesite.com/public_html/wp-includes/class-http.php:496
[Thu May 05 12:28:01.160012 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP  11. WP_Http->_dispatch_request() /var/www/somesite.com/public_html/wp-includes/class-http.php:342
[Thu May 05 12:28:01.160064 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP  12. WP_Http_Streams->request() /var/www/somesite.com/public_html/wp-includes/class-http.php:433
[Thu May 05 12:28:01.160112 2016] [:error] [pid 19196] [client 5.154.190.132:52254] PHP  13. stream_socket_client() /var/www/somesite.com/public_html/wp-includes/class-wp-http-streams.php:150
[Thu May 05 12:28:12.016210 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP Warning:  stream_socket_client(): unable to connect to tcp://www.slscxhz66.com:80 (Connection timed out) in /var/www/somesite.com/public_html/wp-includes/class-wp-http-streams.php on line 150
[Thu May 05 12:28:12.016521 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP Stack trace:
[Thu May 05 12:28:12.016791 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP   1. {main}() /var/www/somesite.com/public_html/xmlrpc.php:0
[Thu May 05 12:28:12.017062 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP   2. wp_xmlrpc_server->serve_request() /var/www/somesite.com/public_html/xmlrpc.php:84
[Thu May 05 12:28:12.017203 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP   3. IXR_Server->IXR_Server() /var/www/somesite.com/public_html/wp-includes/class-wp-xmlrpc-server.php:197
[Thu May 05 12:28:12.017284 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP   4. IXR_Server->__construct() /var/www/somesite.com/public_html/wp-includes/class-IXR.php:440
[Thu May 05 12:28:12.017640 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP   5. IXR_Server->serve() /var/www/somesite.com/public_html/wp-includes/class-IXR.php:432
[Thu May 05 12:28:12.017734 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP   6. IXR_Server->call() /var/www/somesite.com/public_html/wp-includes/class-IXR.php:470
[Thu May 05 12:28:12.017791 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP   7. wp_xmlrpc_server->pingback_ping() /var/www/somesite.com/public_html/wp-includes/class-IXR.php:520
[Thu May 05 12:28:12.017845 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP   8. wp_safe_remote_get() /var/www/somesite.com/public_html/wp-includes/class-wp-xmlrpc-server.php:6306
[Thu May 05 12:28:12.017899 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP   9. WP_Http->get() /var/www/somesite.com/public_html/wp-includes/http.php:70
[Thu May 05 12:28:12.017954 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP  10. WP_Http->request() /var/www/somesite.com/public_html/wp-includes/class-http.php:496
[Thu May 05 12:28:12.018007 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP  11. WP_Http->_dispatch_request() /var/www/somesite.com/public_html/wp-includes/class-http.php:342
[Thu May 05 12:28:12.018060 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP  12. WP_Http_Streams->request() /var/www/somesite.com/public_html/wp-includes/class-http.php:433
[Thu May 05 12:28:12.018143 2016] [:error] [pid 19188] [client 5.154.190.132:41993] PHP  13. stream_socket_client() /var/www/somesite.com/public_html/wp-includes/class-wp-http-streams.php:150
    
por user297239 05.05.2016 / 12:20

1 resposta

0

qual é a sua versão do Ubuntu?

Se for 14.04-16.04, verifique:

sudo gedit /etc/apache2/sites-available/000-default.conf 

se você mostrar apenas = /var/www então alterou para = /var/www/html

E reinicie o apache

sudo service apache2 restart
    
por Jonayad Rahman 05.05.2016 / 12:47