请教大佬升级php失败怎么修复呢
本帖最后由 netAlchemist 于 2020-9-13 09:49 编辑# cat lnmp.conf
Download_Mirror='https://soft.vpser.net'
Nginx_Modules_Options=''
PHP_Modules_Options='--with-webp'
##MySQL/MariaDB database directory##
MySQL_Data_Dir='/usr/local/mysql/var'
MariaDB_Data_Dir='/usr/local/mariadb/var'
##Default website home directory##
Default_Website_Dir='/home/wwwroot/default'
Enable_Nginx_Openssl='y'
Enable_PHP_Fileinfo='n'
Enable_Nginx_Lua='n'
Enable_Swap='y'
Composer install successfully.
Install ZendGuardLoader for PHP 7...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat ‘/root/lnmp1.7/src/php-7.4.9/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 mariadb (via systemctl):
/usr/bin/lnmp: line 26: /etc/init.d/php-fpm: No such file or directory
升级php的目的是添加--with-webp模块
centos7 debian10都是这样,VPS是contabo完整的日志在附件中
checking for libwebp... no
configure: error: Package requirements (libwebp) were not met:
No package 'libwebp' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables WEBP_CFLAGS
and WEBP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
你安装某个模块需要看该模块是否需要其他依赖包,有依赖包必须要先安装好依赖包才行
比如--with-webp就需要先安装好libweb的依赖包
centos:yum install libwebp-devel
debian/ubuntu:apt-get install libwebp-dev
安装好相关依赖包再进行升级
升级失败的恢复在官网升级教程里有说明 licess 发表于 2020-9-13 14:45
你安装某个模块需要看该模块是否需要其他依赖包,有依赖包必须要先安装好依赖包才行
比如--with-webp就需 ...
:handshake 好的,谢谢军哥指点
页:
[1]