Article ID: 124105, created on Dec 30, 2014, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux


Ngnix goes out of service. Opening or navigating Joomla websites results in 504 Gateway timeout.

In /var/log/apache2/error_log I can see an error:

[error] server reached MaxClients setting, consider raising the MaxClients setting

Increasing MaxClients setting according to this article results in the same error.

Also in /var/log/apache2/error_log appears an error after reaching MaxClients:

* About to connect() to www.domain.tld port 80 (#0)
*   Trying

This domain is not present on server.

Searching this domain address in vhost's logs results in:

# grep -ir www.domain.tld /var/www/vhosts/system/*/*

/var/www/vhosts/system/ 19:14:44 [error] 2330#0: *152093 connect() failed (111: Connection refused) while connecting to upstream, client:, server:, request: "GET /plugins/content/plugin_googlemap2_proxy.php?url=www.domain.tld HTTP/1.1", upstream: "http://%your_ip_address%:7080/plugins/content/plugin_googlemap2_proxy.php?url=www.domain.tld", host: ""


Server is hacked using unsecured Joomla Google Map plugin.


  1. Suspend found hacked domain using Plesk GUI

    host: ""
  2. Remove Google Map plugin using Joomla administration.

  3. Find other affected domains:

    # find /var/www/vhosts -name plugin_googlemap2_proxy.php
  4. Temporary suspend these domains and remove this plugin.

To prevent this in future, install Joomla only using Plesk and enable automatic updates.

Search Words

About to connect

nginx goes out of service

504 Gateway timeout

server reached MaxClients setting

service is unavailable


Gateway timeout



nginx not working

google map proxy

joomla 504



29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF