- Plesk for Linux
Website is inaccessible:
PLESK_INFO: 504 Gateway Time-out
PLESK_INFO: 502 Bad gateway
/var/www/vhosts/example.com/logs/proxy_error.logone of the following error is found:
CONFIG_TEXT: [error] 13463#0: *236171 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 203.0.113.2, server: example.com, request: "GET / HTTP/1.1", upstream: "http://203.0.113.2:7080/", host: "example.com"
CONFIG_TEXT: [error] 13463#0: *236761 upstream timed out (110: Connection timed out) while SSL handshaking to upstream, client: 203.0.113.2, server: example.com, request: "GET /site/b55qrk5.php?aoqm=jaggery HTTP/1.1", upstream: "https://203.0.113.2:7081/site/b55qrk5.php?aoqm=jaggery", host: "example.com"
/var/www/vhosts/example.com/logs/error_logthe following entries may be found:
CONFIG_TEXT: [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
WP All Import plugin fails with error "Your server terminated the import process."
Subscription resources has been exceeded or PHP script is loading too much time.
Log into Plesk.
Go to Domains > example.com > PHP Settings and increase
Connect to the server via SSH.
Open corresponding php.ini file for the domain and adjust settings as below:
# grep max /var/www/vhosts/system/example.com/etc/php.ini
max_execution_time = 3000
max_input_time = 6000
Update PHP settings:
# /usr/local/psa/bin/php_settings -u
Per-domain PHP settings of all domains were successfully updated.