无标题文档
WDCDN联

盟内部测试火热进行中
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[教程] v3升级到v3.2后,多PHP版本共存的安装方法

自v3.2开始,wdcp支持多PHP版本共存共用和切换,可根据需求灵活选择和使用
从v3.0/3.1升级的用户,还需要再安装下多版本的PHP环境,才可完全正常使用和切换

安装方法如下:
wget http://down.wdlinux.cn/in/phps.sh
sh phps.sh
(共支持7个版本的PHP,如5.2.17/5.3.29/5.4.45/5.5.38/5.6.30/7.0.18/7.1.4)

默认安装使用版本,可以针对或选择性安装某个版本,如
sh phps.sh 7.1.4
即可安装7.1.4

多版本PHP的手动启动|停止|重起
如:5.5
/www/wdlinux/phps/55/bin/php-fpm start
/www/wdlinux/phps/55/bin/php-fpm stop
/www/wdlinux/phps/55/bin/php-fpm restart
如是其它版本,把55替换为相应版本即可

如无特别求,可不必全部安装或启动,因为启动多一个,就会占资源多一份

已知问题
CentOS 7.X系列系统,不再支持php-5.2/5.3的老版本PHP,可考虑使用CentOS 6.X
看清提问三步曲及多看教程/FAQ索引(wdcp,v3,一键包,wdOS),益处多多.wdcp工具集 阿里云主机8折优惠码

先单独安装了5.6之后,又全部安装了。然后新安装的里面,5.6的启动不了。
怀疑原来的5.6还在运行,但是不知道怎么删除原来的。
123123

TOP

checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate

Generating files
configure: creating ./config.status
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| 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 php5.spec
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating sapi/fpm/php-fpm.conf
config.status: creating sapi/fpm/init.d.php-fpm
config.status: creating sapi/fpm/php-fpm.service
config.status: creating sapi/fpm/php-fpm.8
config.status: creating sapi/fpm/status.html
config.status: creating sapi/cgi/php-cgi.1
config.status: creating ext/phar/phar.1
config.status: creating ext/phar/phar.phar.1
config.status: creating main/php_config.h
config.status: executing default commands
/bin/sh /root/src/php-5.4.45/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/date/lib -Iext/date/ -I/root/src/php-5.4.45/ext/date/ -DPHP_ATOM_INC -I/root/src/php-5.4.45/include -I/root/src/php-5.4.45/main -I/root/src/php-5.4.45 -I/root/src/php-5.4.45/ext/date/lib -I/root/src/php-5.4.45/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/src/php-5.4.45/ext/mbstring/oniguruma -I/root/src/php-5.4.45/ext/mbstring/libmbfl -I/root/src/php-5.4.45/ext/mbstring/libmbfl/mbfl -I/root/src/php-5.4.45/ext/sqlite3/libsqlite -I/root/src/php-5.4.45/TSRM -I/root/src/php-5.4.45/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /root/src/php-5.4.45/ext/date/php_date.c -o ext/date/php_date.lo
/bin/sh /root/src/php-5.4.45/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/date/lib -Iext/date/ -I/root/src/php-5.4.45/ext/date/ -DPHP_ATOM_INC -I/root/src/php-5.4.45/include -I/root/src/php-5.4.45/main -I/root/src/php-5.4.45 -I/root/src/php-5.4.45/ext/date/lib -I/root/src/php-5.4.45/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/src/php-5.4.45/ext/mbstring/oniguruma -I/root/src/php-5.4.45/ext/mbstring/libmbfl -I/root/src/php-5.4.45/ext/mbstring/libmbfl/mbfl -I/root/src/php-5.4.45/ext/sqlite3/libsqlite -I/root/src/php-5.4.45/TSRM -I/root/src/php-5.4.45/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /root/src/php-5.4.45/ext/date/lib/astro.c -o ext/date/lib/astro.lo
env: cc: Permission denied
make: *** [ext/date/php_date.lo] Error 1
make: *** Waiting for unfinished jobs....
env: cc: Permission denied
make: *** [ext/date/lib/astro.lo] Error 1


x86_64
CentOS Linux release 7.0.1406 (Core)
----Install Error: 5.4.45 -----------
安装出错了,老大这怎么解决
艾尚网

TOP

都是这个问题,我的也是安装不了,提示安装错误,按百度的意思操作了一下,安装7.1.4的成功了,在安装其他版本还是一样的错误,不好使!!
987影音

TOP

新的服务器,只装一个默认的5.4也切换不成功,一直是5.5
望越做越好

TOP

回复 1# admin


   

Generating files
configure: creating ./config.status
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| 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 php5.spec
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating sapi/fpm/php-fpm.conf
config.status: creating sapi/fpm/init.d.php-fpm
config.status: creating sapi/fpm/php-fpm.service
config.status: creating sapi/fpm/php-fpm.8
config.status: creating sapi/fpm/status.html
config.status: creating sapi/cgi/php-cgi.1
config.status: creating ext/phar/phar.1
config.status: creating ext/phar/phar.phar.1
config.status: creating main/php_config.h
config.status: executing default commands
/bin/sh /root/src/php-5.6.30/libtool --silent --preserve-dup-deps --mode=compile cc -I/root/src/php-5.6.30/ext/sqlite3/libsqlite -DSQLITE_ENABLE_FTS3=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_THREADSAFE=0  -Iext/sqlite3/ -I/root/src/php-5.6.30/ext/sqlite3/ -DPHP_ATOM_INC -I/root/src/php-5.6.30/include -I/root/src/php-5.6.30/main -I/root/src/php-5.6.30 -I/root/src/php-5.6.30/ext/date/lib -I/root/src/php-5.6.30/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/src/php-5.6.30/ext/mbstring/oniguruma -I/root/src/php-5.6.30/ext/mbstring/libmbfl -I/root/src/php-5.6.30/ext/mbstring/libmbfl/mbfl -I/root/src/php-5.6.30/ext/sqlite3/libsqlite -I/root/src/php-5.6.30/ext/zip/lib -I/root/src/php-5.6.30/TSRM -I/root/src/php-5.6.30/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /root/src/php-5.6.30/ext/sqlite3/libsqlite/sqlite3.c -o ext/sqlite3/libsqlite/sqlite3.lo
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [ext/sqlite3/libsqlite/sqlite3.lo] Error 1


x86_64
CentOS Linux release 7.4.1708 (Core)
----Install Error: 5.6.30 -----------



老大麻烦看下, 我这边安装php-5.6.30 失败,7.1 失败. 5.5也失败
目前只有7.0的版本安装成功了

TOP

回复 1# admin
安装错误解决:
yum install -y icu libicu libicu-devel

已经找到安装失败的原因,是应为云锁的原因,请执行命令后重新安装PHP即可安装成功,本人测试成功(非常感谢:
1013477247
)
echo y|/usr/local/yunsuo_agent/uninstall

[PEAR] Archive_Tar    - installed: 1.3.12
[PEAR] Console_Getopt - installed: 1.3.1
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util       - installed: 1.2.3
[PEAR] PEAR           - installed: 1.9.5
Wrote PEAR system config file at: /www/wdlinux/phps/54/etc/pear.conf
You may want to add: /www/wdlinux/phps/54/lib/php to your php.ini include_path
//src/php-5.4.45/build/shtool install -c ext/phar/phar.phar /www/wdlinux/phps/54/bin
ln -s -f /www/wdlinux/phps/54/bin/phar.phar /www/wdlinux/phps/54/bin/phar
Installing PDO headers:          /www/wdlinux/phps/54/include/php/ext/pdo/
--2017-09-25 08:45:36--  http://www.wdlinux.cn/conf/php/php-fpm.conf
Resolving www.wdlinux.cn... 119.146.223.143
Connecting to www.wdlinux.cn|119.146.223.143|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 476 [application/octet-stream]
Saving to: “/www/wdlinux/phps/54/etc/php-fpm.conf”

100%[======================================>] 476         --.-K/s   in 0s      

2017-09-25 08:45:36 (114 MB/s) - “/www/wdlinux/phps/54/etc/php-fpm.conf” saved [476/476]


5.4.45 install complete


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

TOP

QQ截图20170924200530.png
2017-9-24 20:30



x86_64
CentOS release 6.8 (Final)
----Install Error: 5.3.29 -----------


用了老大8楼14楼的办法都用过了,仍然提示安装错误
12345678

TOP

回复 8# admin


env: gcc: Permission deniedenv: gcc: Permission denied
make: *** [ext/date/php_date.lo] Error 1
make: *** Waiting for unfinished jobs....
make: *** [ext/date/lib/astro.lo] Error 1


x86_64
CentOS release 6.5 (Final)
----Install Error: 5.2.17 -----------


帮忙看看,大神
学习中

TOP

求解决方案啊
学习中

TOP

checking for mbsinit... (cached) yeschecking for mbstate_t... (cached) yeschecking for Sybase support... nochecking for Sybase-CT support... nochecking whether to enable System V IPC support... nochecking whether to enable System V semaphore support... nochecking whether to enable System V shared memory support... nochecking for TIDY support... nochecking whether to enable tokenizer support... yeschecking whether to enable WDDX support... nochecking libexpat dir for WDDX... nochecking whether to enable XML support... yeschecking libexpat install dir... nochecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking whether to enable XMLReader support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking for XMLRPC-EPI support... nochecking libexpat dir for XMLRPC-EPI... nochecking iconv dir for XMLRPC-EPI... /usrchecking whether to enable XMLWriter support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking for XSL support... nochecking for zip archive read/writesupport... yeschecking for the location of zlib... /usr
Configuring PEARchecking whether to install PEAR... yes
Configuring Zendchecking for bison version... (cached) 2.4.1 (ok)checking for inttypes.h... (cached) yeschecking for stdint.h... (cached) yeschecking for limits.h... (cached) yeschecking for malloc.h... (cached) yeschecking for string.h... (cached) yeschecking for unistd.h... (cached) yeschecking for stdarg.h... (cached) yeschecking for sys/types.h... (cached) yeschecking for sys/time.h... (cached) yeschecking for signal.h... (cached) yeschecking for unix.h... (cached) nochecking for stdlib.h... (cached) yeschecking for mach-o/dyld.h... (cached) nochecking for dlfcn.h... (cached) yeschecking for size_t... (cached) yeschecking return type of signal handlers... (cached) voidchecking for uint... (cached) yeschecking for ulong... (cached) yeschecking for int32_t... yeschecking for uint32_t... yeschecking for vprintf... (cached) yeschecking for 8-bit clean memcmp... (cached) yeschecking for working alloca.h... (cached) yeschecking for alloca... (cached) yeschecking for memcpy... (cached) yeschecking for strdup... (cached) yeschecking for getpid... (cached) yeschecking for kill... (cached) yeschecking for strtod... (cached) yeschecking for strtol... (cached) yeschecking for finite... (cached) yeschecking for fpclass... (cached) nochecking whether sprintf is broken... (cached) nochecking for finite... (cached) yeschecking for isfinite... (cached) nochecking for isinf... (cached) yeschecking for isnan... (cached) yeschecking whether fp_except is defined... (cached) nochecking for dlfcn.h... (cached) yeschecking whether dlsym() requires a leading underscore in symbol names... nochecking virtual machine dispatch method... CALLchecking whether to enable thread-safety... nochecking whether to enable inline optimization for GCC... yeschecking whether to enable Zend debugging... nochecking whether to enable Zend multibyte... nochecking for inline... (cached) inlinechecking target system is Darwin... nochecking for MM alignment and log values... donechecking for memory allocation using mmap(MAP_ANON)... yeschecking for memory allocation using mmap(/dev/zero)... yeschecking for mremap... (cached) yes
Configuring TSRMchecking for stdarg.h... (cached) yes
Configuring libtoolchecking build system type... x86_64-unknown-linux-gnuchecking for ld used by gcc... (cached) /usr/bin/ldchecking if the linker (/usr/bin/ld) is GNU ld... (cached) yeschecking for /usr/bin/ld option to reload object files... (cached) -rchecking for BSD-compatible nm... (cached) /usr/bin/nm -Bchecking how to recognize dependent libraries... (cached) pass_allchecking for object suffix... (cached) ochecking for executable suffix... (cached) nochecking the maximum length of command line arguments... (cached) 1966080checking command to parse /usr/bin/nm -B output from gcc object... (cached) okchecking for objdir... (cached) .libschecking for ar... (cached) archecking for ranlib... (cached) ranlibchecking for strip... (cached) stripchecking if gcc supports -fno-rtti -fno-exceptions... (cached) nochecking for gcc option to produce PIC... -fPICchecking if gcc PIC flag -fPIC works... (cached) yeschecking if gcc static flag -static works... (cached) nochecking if gcc supports -c -o file.o... (cached) yeschecking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yeschecking dynamic linker characteristics... GNU/Linux ld.so(cached) (cached) checking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... nochecking whether to build static libraries... yes
creating libtoolappending configuration tag "CXX" to libtool
Generating filescreating ./config.statuscreating php5.speccreating main/build-defs.hcreating scripts/phpizecreating scripts/man1/phpize.1creating scripts/php-configcreating scripts/man1/php-config.1creating sapi/cli/php.1creating sapi/cgi/fpm/fpm_autoconf.hcreating sapi/cgi/fpm/php-fpm.confcreating sapi/cgi/fpm/php-fpmcreating main/php_config.hmain/php_config.h is unchangedcreating main/internal_functions.ccreating main/internal_functions_cli.c+--------------------------------------------------------------------+| 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.
ln: creating symbolic link `/usr/lib/libmysql*': File exists/bin/sh /root/src/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/root/src/php-5.2.17/ext/date/ -DPHP_ATOM_INC -I/root/src/php-5.2.17/include -I/root/src/php-5.2.17/main -I/root/src/php-5.2.17 -I/root/src/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/src/php-5.2.17/ext/mbstring/oniguruma -I/root/src/php-5.2.17/ext/mbstring/libmbfl -I/root/src/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/www/wdlinux/mysql/include/mysql -I/root/src/php-5.2.17/TSRM -I/root/src/php-5.2.17/Zend    -I/usr/include -g -O2  -c /root/src/php-5.2.17/ext/date/php_date.c -o ext/date/php_date.lo /bin/sh /root/src/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/root/src/php-5.2.17/ext/date/ -DPHP_ATOM_INC -I/root/src/php-5.2.17/include -I/root/src/php-5.2.17/main -I/root/src/php-5.2.17 -I/root/src/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/src/php-5.2.17/ext/mbstring/oniguruma -I/root/src/php-5.2.17/ext/mbstring/libmbfl -I/root/src/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/www/wdlinux/mysql/include/mysql -I/root/src/php-5.2.17/TSRM -I/root/src/php-5.2.17/Zend    -I/usr/include -g -O2  -c /root/src/php-5.2.17/ext/date/lib/astro.c -o ext/date/lib/astro.lo env: gcc: Permission deniedmake: *** [ext/date/php_date.lo] Error 1make: *** Waiting for unfinished jobs....env: gcc: Permission deniedmake: *** [ext/date/lib/astro.lo] Error 1

x86_64CentOS release 6.5 (Final)----Install Error: 5.2.17 -----------
学习中

TOP

回复 51# semseo


  检查php.ini中的使用内存,建议设置成512M
勇闯添加

TOP

回复 15# 虫子

x86_64
CentOS release 6.8 (Final)
----Install Error: 7.1.4 -----------
安装到最后提示这个错误的,请将云锁删掉后就正常了。找了大半夜原因终于解决了。

TOP

已经安装好了 可是无法运行?

我只是想多装一个PHP5.4的  安装正常 后台也显示运行中,可以某个网站设置PHP版本为5.4后  执行phpinfo还是显示默认的5.6。。

后来我登录linux 执行 /www/wdlinux/phps/54/bin/php-fpm start  出现以下提示

提示:An another FPM instance seems to alre ady listen on /tmp/php-54-cgi.sock

这是什么原因呢?

TOP

回复 74# Edwin


   同求,怎么把第一次安装的php版本的关闭了,按这个方法不行,因为第一次连同面板一起安装的php/www/wdlinux/php/bin/这个目录下没有php-fpm,本人小白一个 方法,怎么关闭第一次安装的默认版本的php!
  1. 多版本PHP的手动启动|停止|重起
  2. 如:5.5
  3. /www/wdlinux/phps/55/bin/php-fpm start
  4. /www/wdlinux/phps/55/bin/php-fpm stop
  5. /www/wdlinux/phps/55/bin/php-fpm restart
  6. 如是其它版本,把55替换为相应版本即可

  7. 如无特别求,可不必全部安装或启动,因为启动多一个,就会占资源多一份
复制代码
ewrfwef

TOP

返回列表