- Plesk for Linux
- Error in
CONFIG_TEXT: [error] 15090#0: *364 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 203.0.113.2. server: example.com, request: "GET /wp-cron.php?doing_wp_cron HTTP/1.0", upstream: "fastcgi://unix:///var/www/vhosts/system/example.com/php-fpm.sock:", host: "www.example.com"
- Website uses MySQL database and is not accessible. It hangs on loading, finishing with an error:
CONFIG_TEXT: Gateway timeout 504
or it fails to load, without hanging:
CONFIG_TEXT: Error establishing a database connection
- Maximum MySQL connections limit is:
# grep max_connections /etc/my.cnf
- Maximum web server processes for the domain is:
# grep max_children /opt/plesk/php/5.6/etc/php-fpm.d/example.com.conf
pm.max_children = 2000
MySQL maximum connections limit is reached. New connections from web server processes are not received by MySQL server.
- Log in to Plesk
- Go to Domains > example.com > PHP Settings and set maximum web server children processes limit less than maximum MySQL server connections limit.