Overview

Warning:This document describes an unsupported workaround that we do not guarantee will work in the future.

After a system administrator performs these steps on a server, it is the system administrator's responsibility to manage and maintain the server's database software.
We recommend that only experienced system administrators attempt to perform these steps.
We are not responsible for any data loss that this procedure may cause.

If you use the /scripts/rpmup script to upgrade Percona to the latest version with a scheduled cPanel update, the system may remove the libmysqlclient client library and replace it with Percona's libperconaserverclient client library. This action breaks PHP and causes EasyApache to fail.

The system will return an error message that resembles the following example:

1. # php -v
2. php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory configure: error: Cannot find libmysqlclient under /usr.
3. Note that the MySQL client library is not bundled anymore!
4.
5. !! './configure [snip] failed with exit code '256' !!

Replace the symlink

To troubleshoot this error, create a symlink and then rebuild PHP. To do this, perform the following steps:

1.Re-create the symlinks. Run the following commands as the root user via the command line:

ln -s /usr/lib64/libperconaserverclient.so.18 /usr/lib64/libperconaserverclient.so
ln -s /usr/lib64/libperconaserverclient.so /usr/lib64/libmysqlclient.so


2.Run EasyApache in WHM's EasyApache (Apache Update) interface (Home >> Software >> EasyApache (Apache Update)) to recompile the PHP binaries.

Note:
To access EasyApache from the command line interface, run the /scripts/easyapache script.

Regards,
Dexter
http://webhosting.uk.com