VPS侦探论坛

 找回密码
 注册
查看: 1353|回复: 3

PHP install failed

[复制链接]
发表于 2023-3-30 19:23:30 | 显示全部楼层 |阅读模式

日志链接https://t.wss.ink/f/aun2i8n429v

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


拜托大佬闲了看一眼哪里的问题
============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.




日志链接https://t.wss.ink/f/aun2i8n429v
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-3-31 00:06:38 | 显示全部楼层

上个问题已解决 新的日志 摆脱大佬看一眼
============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

日志链接 https://t.wss.ink/f/aup3hxzs550
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-3-31 08:36:06 | 显示全部楼层



第一个日志
下载软件包:
[MIRROR] sqlite-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://ftp.sjtu.edu.cn/centos/8- ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://ftp.sjtu.edu.cn/centos/8- ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.qlu.edu.cn/centos ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.qlu.edu.cn/centos ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.aliyun.com/centos ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.aliyun.com/centos ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.bfsu.edu.cn/cento ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.bfsu.edu.cn/cento ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.huaweicloud.com/c ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
(1/2): sqlite-3.26.0-17.el8.x86_64.rpm          811 kB/s | 668 kB     00:00   
[MIRROR] sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirror.lzu.edu.cn/centos/ ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.cqu.edu.cn/CentOS ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.ustc.edu.cn/cento ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://mirrors.bupt.edu.cn/cento ... 0-17.el8.x86_64.rpm [Recv failure: 连接被对方重设]
[MIRROR] sqlite-devel-3.26.0-17.el8.x86_64.rpm: Curl error (28): Timeout was reached for http://mirrors.tuna.tsinghua.edu ... 0-17.el8.x86_64.rpm [Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds]
[FAILED] sqlite-devel-3.26.0-17.el8.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success

下载的软件包保存在缓存中,直到下次成功执行事务。
您可以通过执行 'yum clean packages' 删除软件包缓存。
错误:下载软件包出错 :
  sqlite-devel-3.26.0-17.el8.x86_64: Cannot download, all mirrors were already tried without success

你网络环境可能有问题吧,这么多源都无法正常下载

第二个日志
/bin/sh //home/lnmp1.9/src/php-7.4.30/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I//home/lnmp1.9/src/php-7.4.30/ext/opcache/ -DPHP_ATOM_INC -I//home/lnmp1.9/src/php-7.4.30/include -I//home/lnmp1.9/src/php-7.4.30/main -I//home/lnmp1.9/src/php-7.4.30 -I//home/lnmp1.9/src/php-7.4.30/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I//home/lnmp1.9/src/php-7.4.30/ext/mbstring/libmbfl -I//home/lnmp1.9/src/php-7.4.30/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I//home/lnmp1.9/src/php-7.4.30/TSRM -I//home/lnmp1.9/src/php-7.4.30/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS    -c //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c -o ext/opcache/ZendAccelerator.lo
In file included from //home/lnmp1.9/src/php-7.4.30/main/php.h:140:0,
                 from //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c:22:
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:19:27: 警告:缺少结尾的 " 字符 [默认启用]
#define CONFIGURE_COMMAND " './configure'  '--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/etc' '--with-config-file-scan-dir=/usr/local/php/conf.d' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--enable-mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-iconv-dir' '--with-freetype=/usr/local/freetype' '--with-jpeg' '--with-png' '--with-zlib' '--enable-xml' '--disable-rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--enable-mbregex' '--enable-mbstring' '--enable-intl' '--enable-ftp' '--enable-gd' '--with-openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--with-zip' '--without-libzip' '--enable-soap' '--with-gettext' '--enable-opcache' '--with-xsl' '--with-pear' '--with-webp' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig/
                           ^
In file included from //home/lnmp1.9/src/php-7.4.30/main/php.h:140:0,
                 from //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c:22:
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:20:1: 警告:缺少结尾的 ' 字符 [默认启用]
'"
^
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:20:1: 错误:缺少结尾的 ' 字符
make: *** [ext/opcache/ZendAccelerator.lo] 错误 1
/bin/sh //home/lnmp1.9/src/php-7.4.30/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I//home/lnmp1.9/src/php-7.4.30/ext/opcache/ -DPHP_ATOM_INC -I//home/lnmp1.9/src/php-7.4.30/include -I//home/lnmp1.9/src/php-7.4.30/main -I//home/lnmp1.9/src/php-7.4.30 -I//home/lnmp1.9/src/php-7.4.30/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng15 -I/usr/include/freetype2 -I//home/lnmp1.9/src/php-7.4.30/ext/mbstring/libmbfl -I//home/lnmp1.9/src/php-7.4.30/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I//home/lnmp1.9/src/php-7.4.30/TSRM -I//home/lnmp1.9/src/php-7.4.30/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS    -c //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c -o ext/opcache/ZendAccelerator.lo
In file included from //home/lnmp1.9/src/php-7.4.30/main/php.h:140:0,
                 from //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c:22:
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:19:27: 警告:缺少结尾的 " 字符 [默认启用]
#define CONFIGURE_COMMAND " './configure'  '--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/etc' '--with-config-file-scan-dir=/usr/local/php/conf.d' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--enable-mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-iconv-dir' '--with-freetype=/usr/local/freetype' '--with-jpeg' '--with-png' '--with-zlib' '--enable-xml' '--disable-rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--enable-mbregex' '--enable-mbstring' '--enable-intl' '--enable-ftp' '--enable-gd' '--with-openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--with-zip' '--without-libzip' '--enable-soap' '--with-gettext' '--enable-opcache' '--with-xsl' '--with-pear' '--with-webp' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig/
                           ^
In file included from //home/lnmp1.9/src/php-7.4.30/main/php.h:140:0,
                 from //home/lnmp1.9/src/php-7.4.30/ext/opcache/ZendAccelerator.c:22:
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:20:1: 警告:缺少结尾的 ' 字符 [默认启用]
'"
^
//home/lnmp1.9/src/php-7.4.30/main/build-defs.h:20:1: 错误:缺少结尾的 ' 字符
make: *** [ext/opcache/ZendAccelerator.lo] 错误 1

没遇到过,不清楚问题和原因,可用尝试更换其他php版本或者更换Debian系统试一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-18 11:59 , Processed in 0.027062 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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