VPS侦探论坛

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

求助,安装php报错了

[复制链接]
发表于 2021-9-29 17:49:33 | 显示全部楼层 |阅读模式

linux版本:Linux version 3.10.0-957.5.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Fri Feb 1 14:54:57 UTC 2019

lnmp-install地址:https://www.wenshushu.cn/f/6ih5myervfk
错误内容:

make[1]: Leaving directory `/tmp/lnmp1.8-full/src/nginx-1.20.1'
mkdir: cannot create directory ‘/tmp/tcmalloc’: File exists
3.9+
Create PHP Info Tool...
Copy PHP Prober...
Copy Opcache Control Panel...
============================Install PHPMyAdmin=================================
============================phpMyAdmin install completed=======================
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package iptables-services-1.4.21-35.el7.x86_64 already installed and latest version
Nothing to do
iptables: Saving firewall rules to /etc/sysconfig/iptables: [  OK  ]
Redirecting to /bin/systemctl reload iptables.service
Job for iptables.service invalid.
Add iptables service at system startup...
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.
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
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.
============================== Check install ==============================
Checking ...
Nginx: OK
Do not install MySQL/MariaDB.
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.



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


Generating phar.php
/tmp/lnmp1.8-full/src/php-7.2.34/sapi/cli/php: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
make: *** [ext/phar/phar.php] Error 127

按错误信息可能你机器上的libiconv被删掉或者没有被找到
find / -name libiconv.so.2 找一下是否存在
cat /etc/ld.so.conf 看是否包含 /usr/local/lib
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2021-9-30 10:58:02 | 显示全部楼层

licess 发表于 2021-9-30 10:49
按错误信息可能你机器上的libiconv被删掉或者没有被找到
find / -name libiconv.so.2 找一下是否存在
cat  ...

1、find / -name libiconv.so.2:这个有找到
2、cat /etc/ld.so.conf:这个里面没有/usr/local/lib,现在添加上了
3、正在重新安装中
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-9-30 11:05:56 | 显示全部楼层



licess 发表于 2021-9-30 10:49
按错误信息可能你机器上的libiconv被删掉或者没有被找到
find / -name libiconv.so.2 找一下是否存在
cat  ...

nginx (pid 609) is running...
php-fpm is runing!
State      Recv-Q Send-Q Local Addressort               Peer Addressort              
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:80                       *:*                  
LISTEN     0      128          *:22                       *:*                  
LISTEN     0      1      127.0.0.1:32000                    *:*                  
LISTEN     0      128         :::22                      :::*                  
Install lnmp takes 7 minutes.
Install lnmp V1.8 completed! enjoy it.



安装成功了,大佬太给力了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-20 20:37 , Processed in 0.025995 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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