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 https://downloads.mysql.com/archives/c-odbc/
wget https://downloads.mysql.com/archives/get/file/mysql-connector-odbc-5.2.6-linux-debian6.0-x86-64bit.tar.gz
unpacked:
tar -xzf mysql-connector-odbc-5.2.6-linux-debian6.0-x86-64bit.tar.gz
Copied:
libmyodbc5a.so and libmyodbc5w.so to /usr/lib/x86_64-linux-gnu/odbc/ folder
Edited /etc/odbcinst.ini changing driver string:
Driver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc5w.so
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:
var/log/plesk/panel.log
var/log/sw-cp-server/error_log
/var/log/nginx/error.log
Command for restarting Plesk:
/etc/init.d/psa stop && /etc/init.d/psa start
Tags:
plesk