?> WDlinux官方论坛 - Powered by Discuz! Board Board logo

标题: [求助] 请问为什么安装不了PHP [打印本页]

作者: HQS    时间: 2020-3-6 18:25     标题: 请问为什么安装不了PHP

如题,由于之前数据用了简单的密码被黑之后。今天重新安装WDCP,是最新 v3.3.9
根据:
v3升级到v3.2后,多PHP版本共存的安装方法
https://www.wdlinux.cn/bbs/viewthread.php?tid=56024&highlight=PHP

的方法,提示:
Nothing to do
5.2.17 is Installed
5.3.29 is Installed
5.4.45 is Installed
5.5.38 is Installed
5.6.30 is Installed
7.0.18 is Installed
7.1.4 is Installed

      configurations, phps install is complete
      visit http://ip:8080
      more infomation please visit http://www.wdlinux.cn/bbs/


看上去是成功的,但是只有 5.2.17 成功了,因为
/www/wdlinux/phps
目录下只有 52/etc/php.ini
没有其他。点击WDCP面板的PHP版本管理也只有5.2

其他全部未安装,尝试多次:

wget http://down.wdlinux.cn/in/phps.sh
sh phps.sh
sh phps.sh 7.1.4(如5.2.17/5.3.29/5.4.45/5.5.38/5.6.30/7.0/7.2/7.3)


统统提示成功,就是只有5.2
作者: admin    时间: 2020-3-9 09:23

rm -f inf/53.txt
执行这个再安装试试
相应版本相应执行
作者: HQS    时间: 2020-3-10 16:55

回复 2# admin


   多谢了,用“Putty.exe”测试过,算是无效。为什么说算是?用FTP工具《Filezilla》链接服务器,看到 /root/inf/53.txt、54.txt、56.txt、71.txt、72.txt、73.txt 是被删除了,
执行以下:
wget http://down.wdlinux.cn/in/phps.sh
sh phps.sh 5.4.45
sh phps.sh 5.6.30
sh phps.sh 7.0.33
sh phps.sh 7.1.25
sh phps.sh 7.2.15
sh phps.sh 7.3.2


显示检查:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
最后:Nothing to do

本人只是喳喳前端,不太懂后端的语言,看到 /root/src 目录下已经有:
php-5.2.17.tar.gz、php-5.3.29.tar.gz、php-5.4.45.tar.gz、php-5.5.38.tar.gz、php-5.6.30.tar.gz、php-7.0.18.tar.gz各个包了

不知道是否和访问端口有关,例如本人的WDCP访问IP地址是:***.***.***.***:8010/index。
后面,把8010,改回8080,再重新测试


sh phps.sh 7.1.4


这次不再是检查、加载什么什么模块。而是:
php-7.1.4/Zend/tests/unset_cv05.phpt
php-7.1.4/Zend/tests/bug42818.phpt
....

checking whether to enable zend signal handling... yes


Configuring TSRM
...


Configuring libtool
...


creating libtool
...


Generating files
...
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+


Thank you for using PHP.
config.status: creating php7.spec
...

configure: WARNING: unrecognized options: --with-mysql
/bin/sh /root/src/php-7.1.4/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/opcache/ -I/root/src/php-7.1.4/ext/opcache/ -DPHP_ATOM_INC -I/root/src/php-7.1.4/include -I/root/src/php-7.1.4/main -I/root/src/php-7.1.4 -I/root/src/php-7.1.4/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/src/php-7.1.4/ext/mbstring/oniguruma -I/root/src/php-7.1.4/ext/mbstring/libmbfl -I/root/src/php-7.1.4/ext/mbstring/libmbfl/mbfl -I/root/src/php-7.1.4/ext/sqlite3/libsqlite -I/root/src/php-7.1.4/ext/zip/lib -I/root/src/php-7.1.4/TSRM -I/root/src/php-7.1.4/Zend    -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS    -c /root/src/php-7.1.4/ext/opcache/ZendAccelerator.c -o ext/opcache/ZendAccelerator.lo
...



Build complete.
Don't forget to run 'make test'.
...

7.1.4 install complete
      configurations, phps install is complete
      visit http://ip:8080
      more infomation please visit http://www.wdlinux.cn/bbs/


这次提示成功 是真的成功

/www/wdlinux/phps/71/ 有文件了,
WDCP面板的PHP版本管理也看到了


我的系统CentOS 6.8 64位,安装WDCP时 默认的PHP是5.5,为了验证想法,接下来再安装 5.6.30其他的都可以了。。。
果然是端口问题。。。。




欢迎光临 WDlinux官方论坛 (http://www.wdlinux.cn/bbs/) Powered by Discuz! 7.2