寶塔php8.1安裝后啟動(dòng)失?。╨ibonig.so.5)
Linux教程
2023-09-02 15:25
8051
今天小編購(gòu)買(mǎi)了亞洲云新上線的香港精品服務(wù)器。安裝了寶塔。然后在安裝php時(shí)怎么都無(wú)法啟動(dòng)。報(bào)錯(cuò)如下:
?復(fù)制
/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
應(yīng)該時(shí)缺少libonig依賴庫(kù)。那么就安裝一下即可。
我用的時(shí)Debian10,如果你時(shí)ubuntu一樣適用。
SSH安裝libonig:
?復(fù)制
apt-get install libonig-dev -y
然后又報(bào)錯(cuò)了:
?復(fù)制
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).
問(wèn)題不大,按指導(dǎo)修復(fù):
?復(fù)制
apt --fix-broken install
一頓操作后,修復(fù)完成。自動(dòng)配置軟件。
?復(fù)制
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) ...
此時(shí)問(wèn)題就已經(jīng)修復(fù)了。去寶塔面板重啟下php8.0即可。