Restart PHP-FPM today can not restart, error message is as follows:
[[email protected] ~]#/etc/init.d/php-fpm start
Starting php-fpm/usr/local/php/sbin/php-fpm:error while loading shared libraries:libmysqlclient.so.18:cannot open Sha Red object File:no such file or directory
Failed
Workaround:
[[Email protected]~]# Find/-name ' libmysqlclient.so.18 '
/usr/local/webserver/mysql56/lib/libmysqlclient.so.18
Enter into the/usr/lib64 directory if there is a soft link to the file
[[email protected] lib64]# ls libmysqlclient.so.18
Ls:cannot access libmysqlclient.so.18:no Such file or directory-does not exist
Re-soft Connection:
[Email protected] ~]# ln-s/usr/local/webserver/mysql56/lib/libmysqlclient.so.18/usr/lib64/
[[email protected] ~]#/etc/init.d/php-fpm start
Starting php-fpm Done
It's OK.
This article from "Hisus" blog, declined reprint!
centos6.8 Start PHP-FPM Error