军哥,今天将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