太阳好刺眼 发表于 2020-6-20 20:10:42

LNMP 1.7安装失败,求助,PHP安装失败

安装日志太大,附件只能110k限制,传不上来。Centos7 64位
PHP 安装版本7.4.6

==================

Complete!
iptables: Saving firewall rules to /etc/sysconfig/iptables:

Redirecting to /bin/systemctl reload iptables.service
Job for iptables.service invalid.
Add iptables service at system startup...
Created symlink from /etc/systemd/system/basic.target.wants/iptables.service to /usr/lib/systemd/system/iptables.service.
Add Startup and Starting LNMP...
Add nginx service at system startup...
Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /etc/systemd/system/nginx.service.
Starting nginx...done
Add mysql service at system startup...
Starting MySQL. SUCCESS!
Add php-fpm service at system startup...
Created symlink from /etc/systemd/system/multi-user.target.wants/php-fpm.service to /etc/systemd/system/php-fpm.service.
include/end.sh: line 56: /etc/init.d/php-fpm: No such file or directory
============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
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.



太阳好刺眼 发表于 2020-6-20 20:24:17

翻了一下日志,截取了部分

No package 'oniguruma' 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 ONIG_CFLAGS
and ONIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more 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......
include/php.sh: line 86: pear: command not found
include/php.sh: line 87: pecl: command not found
Downloading Composer...
--2020-06-20 19:47:34--https://soft.vpser.net/web/php/composer/composer.phar
Resolving soft.vpser.net (soft.vpser.net)... 45.34.93.228, 2600:3c01::f03c:91ff:fe92:1a06
Connecting to soft.vpser.net (soft.vpser.net)|45.34.93.228|:443... connected.
WARNING: cannot verify soft.vpser.net's certificate, issued by ‘/C=LV/L=Riga/O=GoGetSSL/CN=GoGetSSL RSA DV CA’:
Issued certificate has expired.
HTTP request sent, awaiting response... 200 OK
Length: 1976232 (1.9M)
Saving to: ‘/usr/local/bin/composer’

   0K .......... .......... .......... .......... ..........2% 1.22M 2s
    50K .......... .......... .......... .......... ..........5% 1.28M 1s
   100K .......... .......... .......... .......... ..........7% 12.6M 1s
   150K .......... .......... .......... .......... .......... 10% 11.1M 1s
   200K .......... .......... .......... .......... .......... 12% 1.50M 1s
   250K .......... .......... .......... .......... .......... 15% 11.1M 1s
   300K .......... .......... .......... .......... .......... 18% 12.4M 1s
   350K .......... .......... .......... .......... .......... 20% 8.33M 1s
   400K .......... .......... .......... .......... .......... 23% 2.12M 1s
   450K .......... .......... .......... .......... .......... 25% 11.1M 0s
   500K .......... .......... .......... .......... .......... 28% 12.5M 0s
   550K .......... .......... .......... .......... .......... 31% 11.0M 0s
   600K .......... .......... .......... .......... .......... 33% 12.6M 0s
   650K .......... .......... .......... .......... .......... 36% 11.0M 0s
   700K .......... .......... .......... .......... .......... 38% 12.4M 0s
   750K .......... .......... .......... .......... .......... 41%977K 0s
   800K .......... .......... .......... .......... .......... 44% 8.68M 0s
   850K .......... .......... .......... .......... .......... 46%386M 0s
   900K .......... .......... .......... .......... .......... 49%387M 0s
   950K .......... .......... .......... .......... .......... 51%339M 0s
1000K .......... .......... .......... .......... .......... 54%386M 0s
1050K .......... .......... .......... .......... .......... 56%415M 0s
1100K .......... .......... .......... .......... .......... 59%389M 0s
1150K .......... .......... .......... .......... .......... 62%340M 0s
1200K .......... .......... .......... .......... .......... 64% 24.5M 0s
1250K .......... .......... .......... .......... .......... 67% 8.26M 0s
1300K .......... .......... .......... .......... .......... 69% 9.05M 0s
1350K .......... .......... .......... .......... .......... 72% 12.5M 0s
1400K .......... .......... .......... .......... .......... 75% 10.4M 0s
1450K .......... .......... .......... .......... .......... 77% 5.53M 0s
1500K .......... .......... .......... .......... .......... 80% 7.67M 0s
1550K .......... .......... .......... .......... .......... 82% 5.71M 0s
1600K .......... .......... .......... .......... .......... 85% 8.30M 0s
1650K .......... .......... .......... .......... .......... 88% 12.5M 0s
1700K .......... .......... .......... .......... .......... 90% 11.0M 0s
1750K .......... .......... .......... .......... .......... 93% 6.78M 0s
1800K .......... .......... .......... .......... .......... 95% 6.50M 0s
1850K .......... .......... .......... .......... .......... 98% 7.38M 0s
1900K .......... .......... .........                     100% 9.18M=0.3s

2020-06-20 19:47:35 (5.83 MB/s) - ‘/usr/local/bin/composer’ saved

Composer install successfully.
Install ZendGuardLoader for PHP 7.4...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat ‘/root/lnmp1.7/src/php-7.4.6/sapi/fpm/init.d.php-fpm’: No such file or directory
chmod: cannot access ‘/etc/init.d/php-fpm’: No such file or directory
Clean PHP src directory...
 Installing nginx-1.18.0... 
Notice: openssl-1.1.1g.tar.gz not found!!!download now...
--2020-06-20 19:47:36--https://soft.vpser.net/lib/openssl/openssl-1.1.1g.tar.gz
Resolving soft.vpser.net (soft.vpser.net)... 104.238.161.196, 2600:3c01::f03c:91ff:fe92:1a06
Connecting to soft.vpser.net (soft.vpser.net)|104.238.161.196|:443... connected.
WARNING: cannot verify soft.vpser.net's certificate, issued by ‘/C=LV/L=Riga/O=GoGetSSL/CN=GoGetSSL RSA DV CA’:
Issued certificate has expired.
HTTP request sent, awaiting response... 200 OK
Length: 9801502 (9.3M)
Saving to: ‘openssl-1.1.1g.tar.gz’


0% [                                       ] 0         --.-K/s            
0% [                                       ] 40,707       187KB/s            
1% [                                       ] 122,627      282KB/s            
3% [>                                    ] 335,619      523KB/s            
8% [==>                                    ] 859,907   1013KB/s            
22% [=======>                               ] 2,170,627   2.01MB/s            
36% [=============>                         ] 3,612,419   2.63MB/s            
47% [=================>                     ] 4,644,611   2.89MB/s            
72% [===========================>         ] 7,118,595   3.50MB/s            
90% [==================================>    ] 8,904,451   3.74MB/s            
93% [===================================>   ] 9,182,979   3.08MB/s            
93% [===================================>   ] 9,199,363   2.79MB/seta 0s   
94% [===================================>   ] 9,232,131   2.55MB/seta 0s   
100%[======================================>] 9,801,502   2.71MB/s   in 3.5s   

2020-06-20 19:47:40 (2.71 MB/s) - ‘openssl-1.1.1g.tar.gz’ saved

licess 发表于 2020-6-21 08:50:44


按反馈必读要求提供完整日志信息,否则无法确定原因

water6000 发表于 2020-6-21 18:13:18

oniguruma你需要先装这个啊! 另外,你看下php的那个log,别的log没有啥用!!!!
页: [1]
查看完整版本: LNMP 1.7安装失败,求助,PHP安装失败