- Plesk for Linux
When accessing Application Vault or any application, e.g WordPress, the following error is shown in Plesk:
PLESK_ERROR: Can't open lib '/usr/lib/libmyodbc5.so' : file not found
The following error message appears in the logfile /var/log/plesk/panel/log:
CONFIG_TEXT: ERR  ODBC error #01000: [unixODBC][Driver Manager]Can't open lib '/usr/lib/libmyodbc5.so' : file not found
ERR [panel] Exception: ODBC error #01000: [unixODBC][Driver Manager]Can't open lib '/usr/lib/libmyodbc5.so' : file not found
- In case Power User view is used, https://203.0.113.2:8443/smb/ is showing error 502 Bad Gateway.
The path to the MySQL driver is incorrect.
Connect to the Plesk server via SSH.
- Find the proper path to the driver:
# find /usr/ -name "libmyodbc*w.so"
Note: in case the command above is not showing any libmyodbc file, refer to the following article on how to install it:
The Application Vault page or any application cannot be opened in Plesk: Can't open lib '/usr/lib/libmyodbc5.so'
Open the file
/etc/odbcinst.iniin a text editor and set the correct path to the libraries under the [MySQL] section with the path identified on step 2:
Description = MySQL driver for Plesk
Driver = /usr/lib64/libmyodbc5w.so
FileUsage = 1
Driver64 = /usr/lib64/libmyodbc5w.so
UsageCount = 1
Create a symbolic link to the mysql.sock file:
# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
- Restart Plesk Control Panel:
# service sw-engine restart
# service sw-cp-server restart