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

Thats it. It should work now.

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

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-3) was last changed on 24-May-2017 15:30 by Hyve Support
G’day (anonymous guest) My Prefs
  • View Page Source
  • This clear IPSec security association,
    clear ipsec sa peer X.X.X.X
    

All Pages

Page views: 1664

Private Tomcat

Linux

MySQL

Email

SQL Server

ASP

JSP

C#

Web Mail

Windows Plesk

Linux Plesk

PHP

Gaming

ASP.NET

Persits ASPUpload

Wiki Help

Referring Pages:
...nobody

JSPWiki v2.8.1