lnmp1.5 php安装失败
军哥我之前用的lnmp1.4,php7.1版本,thinkphp5,一旦composer到更新版本至5.0.15以上就会报错,所以准备换lnmp1.5,结果我装了几遍都只能装成功nginx和mysql,php一直安装失败,我的内存可用也是大于1G的,我尝试了下只装php,附件是安装日志,期待回复make: 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. 我的系统是 centos 7.4.1708 (Core) 64位
free -m
total used free sharedbuff/cache available
Mem: 3790 609 631 0 2549 2880
Swap: 0 0 0
[ 本帖最后由 alvinhu 于 2018-10-11 13:02 编辑 ] 日志中有一段错误是这样的,不知道是否与他有关系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文件是这样的,貌似没问题
# 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 编辑 ] 我将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 不知道不开启libzip扩展对程序有没有影响,我现在把/usr/local/lib/libxml2.so*全删掉,之前一运行php就一串libxml2的显示也不出现了,服务器目前运行正常。还是希望军哥指点下问题症结在哪里 libxml可能是存在多个或者32和64两种版本的
configure: error: off_t undefined; check your library configuration
这个估计是32、64位的问题
页:
[1]