无标题文档
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折优惠码

多版本PHP的手动启动|停止|重起
如:5.5
/www/wdlinux/phps/55/bin/php-fpm start
运行之后报错。
多版本,只有点5.2版本有效 其它的版本都是已安装未运行。
你好wdcp

TOP

我的是:
系统名称:WDlinux Control Panel (简称wdCP) (WD订阅)
当前版本: wdCP v3.2.6 最新 v3.2.21 下载最新版 更新日志
操作系统:2.6.32-696.18.7.el6.x86_64
CPU参数:1个 1核 64位   还未安装云锁,开启云锁,服务器会更安全,现在就 安装
CPU型号:Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz

TOP

checking if the location of ZLIB install directory is defined... no
checking for zlib version >= 1.2.0.4... 1.2.3
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... yes
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking for cURL 7.10.5 or greater... libcurl 7.19.7
checking for SSL support in libcurl... yes
checking how to run the C preprocessor... cc -E
checking for openssl support in libcurl... no
checking for gnutls support in libcurl... no
checking for curl_easy_perform in -lcurl... yes
checking for curl_easy_strerror in -lcurl... yes
checking for curl_multi_strerror in -lcurl... yes
checking for QDBM support... no
checking for GDBM support... no
checking for NDBM support... no
checking for TCADB support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DB1 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable DOM support... yes
checking for xml2-config path... (cached) /usr/bin/xml2-config
checking whether libxml build works... (cached) yes
checking for ENCHANT support... no
checking whether to enable EXIF (metadata from images) support... no
checking for fileinfo support... no
checking whether to enable input filter support... yes
checking pcre install prefix... no
checking whether to enable FTP support... yes
checking OpenSSL dir for FTP... no
checking for GD support... yes
checking for the location of libwebp... no
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 2... /usr
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
If configure fails try --with-webp-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
checking for fabsf... yes
checking for floorf... yes
checking for GNU gettext support... yes
checking for bindtextdomain in -lintl... no
checking for bindtextdomain in -lc... yes
checking for ngettext in -lc... yes
checking for dngettext in -lc... yes
checking for dcngettext in -lc... yes
checking for bind_textdomain_codeset in -lc... yes
checking for GNU MP support... no
checking for mhash support... yes
checking whether to enable hash support... yes
checking whether byte ordering is bigendian... (cached) no
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 for iconv support... yes
checking for iconv... yes
checking if iconv is glibc's... yes
checking if iconv supports errno... yes
checking if iconv supports //IGNORE... no
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... no
checking for IMAP Kerberos support... no
checking for IMAP SSL support... no
checking for Firebird support... no
checking whether to enable internationalization support... yes
checking for icu-config... no
checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
make: *** No targets specified and no makefile found.  Stop.


x86_64
CentOS release 6.2 (Final)
----Install Error: 7.1.4 -----------


没办法了,找不到makefile文件?怎么弄

TOP

先单独安装了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

返回列表