宝塔安装php无法启动

QioCuIi 108 0

报错内容:

failed to activate:
/www/server/php/56/sbin/php-fpm:error
while loading shared libraries: libcares.so.
2: cannot open shared object file: No such
file or directory

解决方案:其他版本自己修改一下

apt install libc-ares2 -y

报错内容:

ERROR:An another FPM instance seems to already listen on /tmp/php-cgi-56.sock

解决方案:其他版本自己修改一下

rm -rf /tmp/php-cgi-56.sock

报错内容:

/www/server/php/74/sbin/php-fpm: error
while loading shared libraries: libonig.so.2:
cannot open shared object file: No such fil
e or directory

解决方案:其他版本自己修改一下

yum install libsodium-devel sqlite-devel oniguruma-devel libwebp-devel libvpx-devel -y

发表评论 取消回复
表情 图片 链接 代码

分享