Ubuntu升级导致PHP挂掉
军哥,今天将Ubuntu16升级到Ubuntu18,升级后发现php报错。于是首先将Lnmp从1.7升级到1.8,再尝试使用./upgrade.sh进行升级(重装)。但是在完成后提示如下内容:
cp: cannot stat '/root/lnmp1.8/src/php-7.4.14/sapi/fpm/init.d.php-fpm': No such file or directory
chmod: cannot access '/etc/init.d/php-fpm': No such file or directory
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Starting LNMP...
Starting nginx...done
Starting mysql (via systemctl): mysql.service.
/bin/lnmp: line 26: /etc/init.d/php-fpm: No such file or directory
======== upgrade php failed ======
upgrade php log: /root/upgrade_lnmp_php.log
经检查发现php-fpm不存在,且php未正常进行安装,尝试从upgrade_php.sh查看升级逻辑,发现自己水平有限,还望帮助。
下附Log
补充内容 (2021-1-9 19:29):
目前发现缺失组件“libpng”,正在尝试安装后重新升级...
补充内容 (2021-1-9 19:51):
目前进行第二次安装后提示 /usr/bin/ld: cannot find -lpng12
补充内容 (2021-1-9 19:59):
正在检查 libpng12.so 位置并进行第三次安装
补充内容 (2021-1-9 23:38):
参考 https://www.linuxuprising.com/2018/05/fix-libpng12-0-missing-in-ubuntu-1804.html 问题已解决
页:
[1]