Category: ASP General Plesk

Error: 502 Nginx Error

Description: Plesk control Panel didn’t work for few websites and it was throwing following error: 502 Nginx Error

The issue was related to incompatibility between present MySQL ODBC connector and MySQL Community server.

To fix the issue on UBUNTU,

Download MySQL ODBC Connector 5.2.6 for Debian 6


tar -xzf mysql-connector-odbc-5.2.6-linux-debian6.0-x86-64bit.tar.gz

Copied: and to /usr/lib/x86_64-linux-gnu/odbc/ folder

Edited /etc/odbcinst.ini changing driver string:

Driver      = /usr/lib/x86_64-linux-gnu/odbc/

Created link for socket file:

ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock

It should now be working.

Logs to be checked for this issue:


Command for restarting Plesk:

/etc/init.d/psa stop  && /etc/init.d/psa start



How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.