Site does not work: Fatal error: Maximum execution time exceeded

Created:

2016-11-16 13:04:56 UTC

Modified:

2017-08-08 13:08:17 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Site does not work: Fatal error: Maximum execution time exceeded

Applicable to:

  • Plesk for Linux

Symptoms

1. Webpage/domain/site/website shows one of the following errors:

504 Gateway Time-out 

or

502 Bad gateway

or

Fatal error: Maximum execution time of 30 seconds exceeded in script.php on line 99

2. In /var/www/vhosts/example.com/logs/proxy_error.log the following error is found:

[error] 5969#0: *96602 upstream timed out (110: Connection timed out) while reading response header from upstream, client:  203.0.113.2, server: example.com, request: "GET /administrator/index.php?option=com_k2&view=item&cid=62 HTTP/1.1", upstream: "http://203.0.113.2:7080/administrator/index.php?option=com_k2&view=item&cid=62", host: "www.example.com", referrer: "http://www.example.com/administrator/index.php?option=com_k2&view=items"

3. In /var/www/vhosts/example.com/logs/error_log the following error is found:

[Fri May 26 09:24:34.697195 2017] [proxy_fcgi:error] [pid 6657:tid 139812767536896] (104)Connection reset by peer: [client 203.0.113.2:43472] AH01075: Error dispatching request to :, referer: http://www.example.com/administrator/index.php?option=com_k2&view=item&cid=62

[Fri May 26 09:24:35.208451 2017] [proxy_fcgi:error] [pid 6657:tid 139812543600384] [client 203.0.113.2:44066] AH01068: Got bogus version 32, referer: http://www.example.com.no/administrator/index.php?option=com_k2&view=items

Cause

php script is loading too long time.

Resolution

Increase the value of max_execution_time parameter.

Go to Plesk > Domains > example.com > PHP Settings and increase max_execution_time value.

Have more questions? Submit a request
Please sign in to leave a comment.