VPS侦探论坛

 找回密码
 注册
查看: 2992|回复: 2

【求助】upgrade升级php不成功

[复制链接]
发表于 2020-3-5 16:09:15 | 显示全部楼层 |阅读模式

版本:lnmp1.5
php目前是7.0.30,想升级成7.1.30。手动下载上传到服务器lnmp目录后使用upgrade升级,最后报错:

Copy php-fpm init.d file...
cp: cannot stat '/root/lnmp1.5/src/php-7.1.30/sapi/fpm/init.d.php-fpm': No such file or directory
chmod: cannot access '/etc/init.d/php-fpm': No such file or directory



install-mphp7.1.log最后部分内容:

Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking for gettimeofday... (cached) yes
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed.  Please check the config.log for details.
make: *** No targets specified and no makefile found.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
Copy new php configure file...
Modify php.ini......
Install ZendGuardLoader for PHP 7.1...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat '/root/lnmp1.5/src/php-7.1.18/sapi/fpm/init.d.php-fpm': No such file or directory
chmod: cannot access '/etc/init.d/php-fpm7.1': No such file or directory
Add php-fpm7.1 service at system startup...
update-rc.d: error: initscript does not exist: /etc/init.d/php-fpm7.1
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Starting LNMP...
Starting nginx...  done
Starting mysql (via systemctl): mysql.serviceJob for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
failed!
Starting php-fpm  done
Failed to install php-7.1.18, you can download /root/install-mphp7.1.log from your server, and upload install-mphp7.1.log to LNMP Forum.


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2020-3-5 16:10:18 | 显示全部楼层


在/root/lnmp1.5/src/目录下,目前找不到php-7.1.18目录,在运行过程中出现过,后来报错结束后文件夹就自动删除了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2020-3-5 19:34:05 | 显示全部楼层

只按目前信息,你系统可能是debian系的,缺少libxml2-dev依赖包,apt-get install libxml2-dev 后再试
这些依赖包安装lnmp时候就自动安装过了的,缺少说明被删除了,有可能还有其他的被删除,按提示的软件包安装对应的依赖包就可以
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-20 21:22 , Processed in 0.026473 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表