centos6.8 启动php-fpm报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6.8 启动php-fpm报错相关的知识,希望对你有一定的参考价值。

今日重启php-fpm重启不了 ,报错信息如下:

[[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 shared object file: No such file or directory
 failed
解决方法:

[[email protected]~]# find  / -name ‘libmysqlclient.so.18‘
/usr/local/webserver/mysql56/lib/libmysqlclient.so.18

进入到/usr/lib64目录下是否有该文件软链接

[[email protected] lib64]# ls libmysqlclient.so.18
ls: cannot access libmysqlclient.so.18: No such file or directory -不存在

重新软连接:

[[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
就OK了 。

本文出自 “hisus” 博客,谢绝转载!

以上是关于centos6.8 启动php-fpm报错的主要内容,如果未能解决你的问题,请参考以下文章

linux centos6.8下 php连接redis读取数据间歇性502解决

centos6.8配置php-fpm(php已在apache中以模块形式运行,nginx中同时以fastcgi运行)

mac 启动php-fpm报错 failed to open configuration file '/private/etc/php-fpm.conf': No such file

docker-compose启动php-fpm报错问题

php-fpm启动报错:libgearman.so.8: No such file or directory in Unknown on line 0

php-fpm开启报错-ERROR: An another FPM instance seems..