VPS侦探论坛

 找回密码
 注册
查看: 4005|回复: 5

lnmp1.5 php安装失败

[复制链接]
发表于 2018-10-11 12:21:13 | 显示全部楼层 |阅读模式

军哥我之前用的lnmp1.4,php7.1版本,thinkphp5,一旦composer到更新版本至5.0.15以上就会报错,所以准备换lnmp1.5,结果我装了几遍都只能装成功nginx和mysql,php一直安装失败,我的内存可用也是大于1G的,我尝试了下只装php,附件是安装日志,期待回复make[1]: Leaving directory `/home/install/lnmp1.5-full/src/nginx-1.14.0'
chown: changing ownership of ‘/home/wwwroot/default/.user.ini’: Operation not permitted
mkdir: cannot create directory ‘/usr/local/nginx/conf/vhost’: File exists
include/nginx.sh: line 113: /home/wwwroot/default/.user.ini: Permission denied
chmod: changing permissions of ‘/home/wwwroot/default/.user.ini’: Operation not permitted
Create PHP Info Tool...
Copy PHP Prober...
Copy Opcache Control Panel...
============================Install PHPMyAdmin=================================
============================phpMyAdmin install completed=======================
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
Add Startup and Starting LNMP...
Add nginx service at system startup...
Starting nginx... nginx (pid 17654 17653 17652) already running.
Add php-fpm service at system startup...
error reading information on service php-fpm: No such file or directory
error reading information on service php-fpm: No such file or directory
include/end.sh: line 54: /etc/init.d/php-fpm: No such file or directory
============================== 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.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

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


我的系统是 centos 7.4.1708 (Core)     64位               
free -m


                     total        used        free      shared  buff/cache   available
Mem:           3790         609         631           0        2549        2880
Swap:             0           0           0

[ 本帖最后由 alvinhu 于 2018-10-11 13:02 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-10-11 13:06:14 | 显示全部楼层

日志中有一段错误是这样的,不知道是否与他有关系checking for uint64_t... (cached) yes
checking for ssize_t... yes
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of long long... (cached) 8
checking size of off_t... 0
configure: error: off_t undefined; check your library configuration
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 78: pear: command not found
include/php.sh: line 79: pecl: command not found
include/php.sh: line 84: php: command not found
curl: (23) Failed writing body (0 != 16133)
Install ZendGuardLoader for PHP 7.2...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat ‘/home/install/lnmp1.5-full/lnmp1.5-full/src/php-7.2.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


我百度了off_t错误,网上讲要修改 /etc/ld.so.conf
我的/etc/ld.so.conf文件是这样的,貌似没问题
[root@mmms default]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/lib
/usr/lib
/usr/lib64
/usr/local/lib

[ 本帖最后由 alvinhu 于 2018-10-11 13:14 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2018-10-11 15:09:41 | 显示全部楼层



我将php.sh里 configure中的 --enable-zip 去掉之后是可以成功编译的 The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
Add Startup and Starting LNMP...
Add nginx service at system startup...
Starting nginx... nginx (pid 17654 17653 17652) already running.
Add php-fpm service at system startup...
Starting php-fpm /usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/local/php/sbin/php-fpm)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libexslt.so.0)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libexslt.so.0)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libexslt.so.0)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
/usr/local/php/sbin/php-fpm: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/lib64/libxslt.so.1)
done
============================== Check install ==============================
Checking ...
Nginx: OK
Do not install MySQL/MariaDB.
PHP: OK
PHP-FPM: OK


只要运行php 就会报上面一对的libxml2
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-10-11 15:26:59 | 显示全部楼层

不知道不开启libzip扩展对程序有没有影响,我现在把/usr/local/lib/libxml2.so*全删掉,之前一运行php就一串libxml2的显示也不出现了,服务器目前运行正常。还是希望军哥指点下问题症结在哪里

军哥运维代购:http://shop63846532.taobao.com/

发表于 2018-10-12 13:22:31 | 显示全部楼层

libxml可能是存在多个或者32和64两种版本的

configure: error: off_t undefined; check your library configuration
这个估计是32、64位的问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-19 15:16 , Processed in 0.027974 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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