
成都、襄阳、宁波16H16G50M 限量优惠 (禁止长期跑满带宽)
携手合作伙伴,实现业务上的双向合作共赢
10+年商誉沉淀,深耕中国香港及海外高端资源
我们为您提供全方位的支持与服务,确保您在使用我们的云服务时无忧无虑。
今天小编购买了不二云新上线的香港精品服务器。安装了宝塔。然后在安装php时怎么都无法启动。报错如下:
/www/server/php/80/sbin/php-fpm: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
应该时缺少libonig依赖库。那么就安装一下即可。
我用的时Debian10,如果你时ubuntu一样适用。
SSH安装libonig:
apt-get install libonig-dev -y
然后又报错了:
You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: bt-nginx120 : Depends: liblua5.1-0 but it is not going to be installed bt-php80 : Depends: libonig5 (>= 6.8.1) but it is not going to be installed Depends: libsodium23 (>= 1.0.14) but it is not going to be installed libonig-dev : Depends: libonig5 (= 6.9.1-1) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
问题不大,按指导修复:
apt --fix-broken install
一顿操作后,修复完成。自动配置软件。
Setting up libsodium23:amd64 (1.0.17-1) ... Setting up liblua5.1-0:amd64 (5.1.5-8.1+b2) ... Setting up libonig5:amd64 (6.9.1-1) ... Setting up bt-nginx120 (1.20.0) ... Setting up bt-php80 (8.0.6) ... Processing triggers for libc-bin (2.28-10) ...
此时问题就已经修复了。去宝塔面板重启下php8.0即可。
服务热线:
4009011125电子邮箱:
abcqq@188.comTelegram:
https://t.me/a86cc商务QQ:
3515655888公众号
微信
Linux工具推荐:
支持一键换源/安装宝塔/1p/系统优化等,运维好帮手!Github开源工具,欢迎star~
https://cb2.cn/helpcontent/230.html
(开源地址:https://github.com/JiaP/cb2cn)
---------------------------------------
邀请好友注册购买可获得高额佣金!