Article ID: 118671, created on Nov 15, 2013, last review on Mar 25, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix


  1. When attempting to log into Plesk, the 502 Bad Gateway error appears instead of the Home page.

  2. When adding a new customer or a subscription, the 502 Bad Gateway error is displayed.

  3. The same error appears on opening the Application Pool.

  4. After executing this command, the following output appears:

    # grep -ir "exited with code 127" /var/log/sw-cp-server/sw-engine.log 
    [28-Jan-2015 22:06:13] WARNING: [pool plesk] child 19510 exited with code 127 after 21.286276 seconds from start 
    [28-Jan-2015 22:06:41] WARNING: [pool plesk] child 19557 exited with code 127 after 28.814912 seconds from start 
    [28-Jan-2015 22:09:56] WARNING: [pool plesk] child 19793 exited with code 127 after 0.880203 seconds from start
  5. MySQL ODBC connector 5.1.5r1144 is installed on the server:

    # rpm -qa | grep mysql-connector

    Alternatively, if the currently installed ODBC connector is corrupted, the following command returns non-empty results:

    # rpm -V mysql-connector-odbc
  6. MySQL 5.5 or higher is being used.


The MySQL ODBC connector is broken or incompatible with the MySQL server currently installed on the server.


  1. Download MySQL Connector/ODBC version 5.2 from the MySQL web site and install it.

    rpm -Uvh <package_name> --force
  2. Check that the symlink /tmp/mysql.sock exists and points to the MySQL socket. The location of the MySQL socket can be found in /etc/my.cnf:

    # grep sock /etc/my.cnf

    If /tmp/mysql.sock does not exist, create it:

    # ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

    NOTE: If you encounter this error:

    Message [unixODBC][Driver Manager]Can't open lib '/usr/lib64/unixODBC/' : file not found

    Then create the link with this command:

    ln -s /usr/lib64/

If the steps above did not help, ensure that 'APS_DB_DRIVER_LIBRARY' directive in /etc/psa/psa.conf points to the correct instance of which is shipped by the following packages:

Plesk 10.4: rdbmspp-2.0-650086

Plesk 11: rdbmspp-2.0-650086

Plesk 11.5: rdbmspp-2.0-735641

Plesk 12: plesk-rdbmspp-2.0-735641

Note: You should have the only one instance of rdbmspp package installed.

Search Words

plesk login 502

plesk show 502 bad gateway

fasctcgi server doesnt work

bad gateway

create customer 502

exited with code 127

unable create subscription


login error 502

Error: Failed to connect to database server: Unknown column 'plugin' in 'mysql.user'

unable create customer



502 bad gateway

Unable to Change subcriptor

502 Bad Gateway

create subscription 502

General driver defined error

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF