SymptomsWhen I try running a Plesk utility manually, I get the error below.
For example, for the utility websrvmng (You may get the same error for other Plesk utilities, not just for websrvmng):
~# /usr/local/psa/admin/sbin/websrvmng -av
/usr/local/psa/admin/sbin/websrvmng: error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory
What is causing the problem?
CauseThe error means that the Plesk utility websrvmng is compiled with the support of mysql4. However, mysql5 is installed. In this case, the utility cannot be executed.
NOTE: Not all Plesk utilities for all operating systems are compiled with mysql4.
For each operating system, Parallels Plesk Panel is compiled with the support of packages that are provided by the vendor.
ResolutionBelow is an example for Parallels Plesk Panel 8.6, CentOS release 5.2.
You should investigate and resolve the problem with your server similarly.
Compare the supported packages with the installed ones.
1. First, make sure that the package that provides the utility websrvmng matches your operating system:
~# rpm -qf /usr/local/psa/admin/sbin/websrvmng
~# cat /etc/redhat-release
CentOS release 5.2 (Final)
If a Plesk package from another operating system is installed, download the package for your operating system/architecture and install it.
2. Compare the Plesk requirements with the installed packages. Use rpm -q --requires to get a list of requirements:
~# rpm -q --requires psa | grep mysql
mysql-server >= 5.0.22
Check which MySQL version is installed:
~# rpm -q mysql
If "mysql" is not the required version, you should upgrade or downgrade the "mysql" package to match. The package can be found on the website autoinstall.plesk.com. The mysql-5.0.45-7.el5 package for CentOS release 5.2 is located at http://autoinstall.plesk.com/PSA_8.6.0/update-rpm-CentOS-5-i386/.
If the psa-8.6.0 package does not match your operating system, you should reinstall it. You may download Plesk packages from the website http://autoinstall.plesk.com. Open the site, find the Plesk version for your operating system and architecture, and download and install the psa-8.6.0 package. The psa-8.6.0 package for CentOS release 5.2 is located at http://autoinstall.plesk.com/PSA_8.6.0/dist-rpm-CentOS-5-i386/base/.
3. Then verify that the utility websrvmng was not replaced, and that it matches psa-8.6.0. You may check this with the command rpm -V:
~# rpm -V psa-8.6.0 | grep websrvmng
The tag S.5 means that the package was replaced and does not belong to psa-8.6.0.
To resolve this, reinstall psa-8.6.0 and all patches. NOTE: The utility may generate the tag "S.5" if it was replaced by Plesk patches. In this case, all patches should be reinstalled.