Board logo

标题: [教程] v3升级到v3.2后,多PHP版本共存的安装方法 [打印本页]

作者: admin    时间: 2017-5-9 16:50     标题: v3升级到v3.2后,多PHP版本共存的安装方法

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

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

可直接执行sh phps.php
会提示相应的版本选择安装或安装全部

也可以针对或指定某个版本,如
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
作者: 虫子    时间: 2017-5-10 14:42

哈哈哈哈哈哈哈哈,终于等到你!
作者: 虫子    时间: 2017-5-10 14:46

Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking for gettimeofday... (cached) yes
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... yes
checking for Kerberos support... no
checking whether to use system default cipher list instead of hardcoded value... no
checking for RAND_egd... no
checking for pkg-config... /usr/bin/pkg-config
checking for PCRE library to use... bundled
checking whether to enable PCRE JIT functionality... yes
checking whether to enable the SQLite3 extension... yes
checking bundled sqlite3 library... yes
checking for ZLIB support... yes
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... no
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.8 (Final)
----Install Error: 7.1.4 -----------
作者: 虫子    时间: 2017-5-10 14:47

怎么回事?老大,求帮助,求指导!
作者: kangs    时间: 2017-5-10 16:22

回复 3# 虫子


    同样的错误……
作者: ropon    时间: 2017-5-10 16:27

不错 支持多版本 ssl
作者: 52ymr    时间: 2017-5-10 16:59

回复 3# 虫子

兄弟,我也是一样的错误,现在解决了吗?我用的是Vutrl的主机CentOS 6.8 _64
作者: admin    时间: 2017-5-10 17:09

yum install -y icu libicu libicu-devel
作者: 百川君    时间: 2017-5-10 17:49

checking for getprotobyname... yes
checking for getprotobynumber... yes
checking for getservbyname... yes
checking for getservbyport... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for getpwnam_r... yes
checking for getgrnam_r... yes
checking for getpwuid_r... yes
checking for grantpt... yes
checking for inet_ntoa... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for isascii... yes
checking for link... yes
checking for localtime_r... yes
checking for lockf... yes
checking for lchown... yes
checking for lrand48... yes
checking for memcpy... yes
checking for memmove... yes
checking for mkstemp... yes
checking for mmap... yes
checking for nl_langinfo... yes
checking for perror... yes
checking for poll... yes
checking for ptsname... yes
checking for putenv... yes
checking for realpath... yes
checking for random... yes
checking for rand_r... yes
checking for regcomp... yes
checking for res_search... (cached) yes
checking for scandir... yes
checking for setitimer... yes
checking for setlocale... yes
checking for localeconv... yes
checking for setenv... yes
checking for setpgid... yes
checking for setsockopt... yes
checking for setvbuf... yes
checking for shutdown... yes
checking for sin... yes
checking for snprintf... yes
checking for srand48... yes
checking for srandom... yes
checking for statfs... yes
checking for statvfs... yes
checking for std_syslog... no
checking for strcasecmp... yes
checking for strcoll... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strnlen... yes
checking for strptime... yes
checking for strstr... yes
checking for strtok_r... yes
checking for symlink... yes
checking for tempnam... yes
checking for tzset... yes
checking for unlockpt... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utime... yes
checking for vsnprintf... yes
checking for nanosleep... checking for nanosleep in -lrt... yes
yes
checking for getaddrinfo... yes
checking for strlcat... no
checking for strlcpy... no
checking for getopt... yes
checking whether utime accepts a null argument... yes
checking for working alloca.h... (cached) yes
checking for alloca... yes
checking for declared timezone... yes
checking for type of reentrant time-related functions... POSIX
checking for readdir_r... yes
checking for type of readdir_r... POSIX
checking for in_addr_t... yes
checking for crypt_r... no

General settings
checking whether to include gcov symbols... no
checking whether to include debugging symbols... no
checking layout of installed files... PHP
checking path to configuration file... /www/wdlinux/phps/52/etc
checking where to scan for configuration files...
checking whether to enable safe mode by default... no
checking for safe mode exec dir... /usr/local/php/bin
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to enable magic quotes by default... no
checking whether to explicitly link against libgcc... no
checking whether to enable short tags by default... yes
checking whether to enable dmalloc... no
checking whether to enable IPv6 support... yes
checking how big to make fd sets... using system default

Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... yes
checking for Kerberos support... no
checking for DSA_get_default_method in -lssl... yes
checking for pkg-config... /usr/bin/pkg-config
checking for PCRE support... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
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 if we should use cURL for url streams... no
checking for cURL in default path... found in /usr
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... gcc -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_version_info 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 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 dbase support... 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 whether to enable EXIF (metadata from images) support... yes
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF 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 libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... yes
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
configure: error: libjpeg.(a|so) not found.
ln: creating symbolic link `/usr/lib/libmysql*': File exists
make: *** No targets specified and no makefile found.  Stop.


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

老大安装失败是怎么回事
作者: 虫子    时间: 2017-5-10 17:51

回复 7# 52ymr


   还是老大给力,一条命令拯救了一条绳命啊
作者: 虫子    时间: 2017-5-10 17:52

回复 8# admin


config.status: creating main/php_config.h
config.status: executing default commands
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

/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/Optimizer/dfa_pass.c -o ext/opcache/Optimizer/dfa_pass.lo
/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/Optimizer/zend_ssa.c -o ext/opcache/Optimizer/zend_ssa.lo
/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/Optimizer/zend_inference.c -o ext/opcache/Optimizer/zend_inference.lo
cc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla&gt; for instructions.
make: *** [ext/opcache/Optimizer/zend_inference.lo] Error 1


x86_64
CentOS release 6.8 (Final)
----Install Error: 7.1.4 -----------
作者: 虫子    时间: 2017-5-10 18:08

老大,还没解决。。。。
作者: 虫子    时间: 2017-5-10 18:21

:'(:'(:'(:'(
作者: admin    时间: 2017-5-10 18:56

yum install -y gcc gcc-c++ make sudo autoconf libtool-ltdl-devel gd-devel \
        freetype-devel libxml2-devel libjpeg-devel libpng-devel openssl-devel \
        curl-devel patch libmcrypt-devel libmhash-devel ncurses-devel bzip2 \
        libcap-devel ntp sysklogd diffutils sendmail iptables unzip cmake wget \
        re2c bison icu libicu libicu-devel net-tools psmisc vim-enhanced
作者: 虫子    时间: 2017-5-10 18:59

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* epel: ftp.riken.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jp
Package gcc-4.4.7-18.el6.x86_64 already installed and latest version
Package gcc-c++-4.4.7-18.el6.x86_64 already installed and latest version
Package 1:make-3.81-23.el6.x86_64 already installed and latest version
Package sudo-1.8.6p3-27.el6.x86_64 already installed and latest version
Package autoconf-2.63-5.1.el6.noarch already installed and latest version
Package libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 already installed and latest version
Package gd-devel-2.0.35-11.el6.x86_64 already installed and latest version
Package freetype-devel-2.3.11-17.el6.x86_64 already installed and latest version
Package libxml2-devel-2.7.6-21.el6_8.1.x86_64 already installed and latest version
Package libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64 already installed and latest version
Package 2:libpng-devel-1.2.49-2.el6_7.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest version
Package libcurl-devel-7.19.7-53.el6_9.x86_64 already installed and latest version
Package patch-2.6-6.el6.x86_64 already installed and latest version
Package libmcrypt-devel-2.5.8-9.el6.x86_64 already installed and latest version
Package mhash-devel-0.9.9.9-3.el6.x86_64 already installed and latest version
Package ncurses-devel-5.7-4.20090207.el6.x86_64 already installed and latest version
Package bzip2-1.0.5-7.el6_0.x86_64 already installed and latest version
Package libcap-devel-2.16-5.5.el6.x86_64 already installed and latest version
Package ntp-4.2.6p5-10.el6.centos.2.x86_64 already installed and latest version
No package sysklogd available.
Package diffutils-2.8.1-28.el6.x86_64 already installed and latest version
Package sendmail-8.14.4-9.el6_8.1.x86_64 already installed and latest version
Package iptables-1.4.7-16.el6.x86_64 already installed and latest version
Package unzip-6.0-5.el6.x86_64 already installed and latest version
Package cmake-2.8.12.2-4.el6.x86_64 already installed and latest version
Package wget-1.12-10.el6.x86_64 already installed and latest version
Package re2c-0.13.5-1.el6.x86_64 already installed and latest version
Package bison-2.4.1-5.el6.x86_64 already installed and latest version
Package icu-4.2.1-14.el6.x86_64 already installed and latest version
Package libicu-4.2.1-14.el6.x86_64 already installed and latest version
Package libicu-devel-4.2.1-14.el6.x86_64 already installed and latest version
Package net-tools-1.60-114.el6.x86_64 already installed and latest version
Package psmisc-22.6-24.el6.x86_64 already installed and latest version
Package 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64 already installed and latest version
Nothing to do


我把web目录备份了下,直接删掉了 /www/wdlinux,打算重新安装v32,但是问题出现了:
(最后一屏的出错信息)
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
case "linux-gnu" in \
          aix*) (cd /usr/lib && \
                 objects=`ar t libiconv.a`" "`ar t /lib/libiconv.a` && \
                 ar x libiconv.a && ar x /lib/libiconv.a && \
                 ar q libiconv.new.a $objects && \
                 rm -f $objects && \
                 mv -f libiconv.new.a libiconv.a) ;; \
        esac
make[1]: Leaving directory `/root/v32/src/libiconv-1.14/lib'
cd preload && make install prefix='/usr' exec_prefix='/usr' libdir='/usr/lib'
make[1]: Entering directory `/root/v32/src/libiconv-1.14/preload'
if [ ! -d /usr/lib ] ; then /bin/sh ./build-aux/mkinstalldirs /usr/lib ; fi
if test -n "preloadable_libiconv.so"; then /usr/bin/install -c -m 644 preloadable_libiconv.so /usr/lib/preloadable_libiconv.so.new && mv /usr/lib/preloadable_libiconv.so.new /usr/lib/preloadable_libiconv.so ; fi
mv: cannot move `/usr/lib/preloadable_libiconv.so.new' to `/usr/lib/preloadable_libiconv.so': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/root/v32/src/libiconv-1.14/preload'
make: *** [install] Error 2


x86_64
CentOS release 6.8 (Final)
----Install Error: libiconv install err -----------
作者: 虫子    时间: 2017-5-10 19:04

mv: cannot move `/usr/lib/preloadable_libiconv.so.new' to `/usr/lib/preloadable_libiconv.so': Permission denied

我讲这个文档改名字之后又开始安装了。
但愿这回没事儿。

而且,你给的那个命令里面,有个包无法安装:
No package sysklogd available.
作者: 虫子    时间: 2017-5-10 19:28

回复 1# admin


   老大,我倒是安装完毕了,但是,,,,,一个php版本都没了,怎么办。。。。。
作者: 虫子    时间: 2017-5-11 09:59

老大,这个升级php的脚本再完善下吧。
另外,我把v3的wdlinux删除后,web目录也备份之后,重新下载完整的lanmp安装包,有几个问题:
1. 没有自动开启screen,整个安装过程都提心吊胆。
2. 安装是提示有个文件无法替换,用root权限安装的,在上面的问题中有提到,这个需要手动更改一下才能继续。
3. 安装完成之后,进入wdcp,发现php一个版本都没有,就这么消。。。。失。。。了。。。

希望wdcp越来越好!挺你
作者: sencea    时间: 2017-5-11 10:12

在后台从3.0.9升级到3.2后,更新全部站点配置信息,伪静态无法生效 。网站是N+A模式
作者: shunyixn    时间: 2017-5-12 15:19

安装中,希望一切顺利
作者: bingliangzhao    时间: 2017-5-12 22:12

多版本是共存了,但是没法自动启动,这是咋回事?
作者: wskhen    时间: 2017-5-14 23:15

5.2         /www/wdlinux/phps/52         /www/wdlinux/phps/52/etc/php.ini  编辑 优化参数设置         未安装                 否 开
5.3         /www/wdlinux/phps/53         /www/wdlinux/phps/53/etc/php.ini  编辑 优化参数设置         未安装                 否 开
5.4         /www/wdlinux/phps/54         /www/wdlinux/phps/54/etc/php.ini  编辑 优化参数设置         未安装                 否 开
5.5         /www/wdlinux/phps/55         /www/wdlinux/phps/55/etc/php.ini  编辑 优化参数设置         未安装                 否 开
5.6         /www/wdlinux/phps/56         /www/wdlinux/phps/56/etc/php.ini  编辑 优化参数设置         未安装                 否 开
7.0         /www/wdlinux/phps/70         /www/wdlinux/phps/70/etc/php.ini  编辑 优化参数设置         未安装                 否 开
7.1         /www/wdlinux/phps/71         /www/wdlinux/phps/71/etc/php.ini  编辑 优化参数设置         未安装                 否 开

怎么升级呀,目前WDCP已用了一年了,不敢轻易去安装PHP版本,怕....
作者: qyq076    时间: 2017-5-16 08:55

wdcp 这次真是历史新更新意义,我靠win可以完美下岗了,勒索病毒在不用担心了,这次更新太给力了,wdcp用户量一定暴增1个亿
作者: 已注册    时间: 2017-5-16 11:05

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://apt.sw.be/redhat/el6/en/mirrors-rpmforge error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'apt.sw.be'"
* base: mirrors.aliyun.com
* epel: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'apt.sw.be'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge. Please verify its path and try again
作者: fubaoshan    时间: 2017-5-16 17:02

回复 1# admin

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 InterBase 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: *** 没有指明目标并且找不到 makefile。 停止。





x86_64

CentOS release 6.7 (Final)

----Install Error: 5.4.45 -----------

这是什么情况呢? 麻烦了老大


作者: maidou    时间: 2017-5-17 13:59

管理员,我添加二级域名的时候,wdcp 后台控制页面,很多死掉,还是就是二级域名没有分页展示
作者: muyufusheng    时间: 2017-5-17 17:26

5.2.17无法安装。其它的版本可以安装。。。

求解决。。
QQ截图20170517171600.jpg
2017-5-17 17:26


图片附件: QQ截图20170517171600.jpg (2017-5-17 17:26, 13.31 KB) / 下载次数 8299
http://www.wdlinux.cn/bbs/attachment.php?aid=7372&k=5b46949ab9617d2acf9b708c39dafd28&t=1679933642&sid=ph6144


作者: bzlmc1    时间: 2017-5-17 21:52

本帖最后由 bzlmc1 于 2017-5-17 21:53 编辑

236.jpg
2017-5-17 21:53
[attach]7376[/attach][attach]7376[/attach]
2589.jpg
2017-5-17 21:49
我的环境是的N+A组合,原来是PHP5.6,我现在安装好了5.4,服务也重启了?为什么进我的网站的系统信息还是PHP5.6呢?

图片附件: 2589.jpg (2017-5-17 21:49, 63.95 KB) / 下载次数 8181
http://www.wdlinux.cn/bbs/attachment.php?aid=7374&k=a1542d5de7cd2f6c2b825512d593faa5&t=1679933642&sid=ph6144



图片附件: 2365.jpg (2017-5-17 21:51, 10.36 KB) / 下载次数 8098
http://www.wdlinux.cn/bbs/attachment.php?aid=7375&k=c074b31ff080ea3927aba747e8260072&t=1679933642&sid=ph6144



图片附件: 236.jpg (2017-5-17 21:53, 13.38 KB) / 下载次数 8195
http://www.wdlinux.cn/bbs/attachment.php?aid=7377&k=db6d98fcb5c50c14dae85a3faa13ff8f&t=1679933642&sid=ph6144


作者: sanwuju    时间: 2017-5-19 16:27

回复 1# admin


   非常好支持一下WDCP
作者: aa13    时间: 2017-5-19 19:42

多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

如无特别求,可不必全部安装或启动,因为启动多一个,就会占资源多一份
作者: aa13    时间: 2017-5-19 19:42

昨天 白干了一天
作者: hxz55    时间: 2017-5-20 13:50

回复 27# muyufusheng


   已解决

执行命令:

wget http://down.wdlinux.cn/in/iconv_ins.sh

sh iconv_ins.sh


然后再执行


wget http://down.wdlinux.cn/in/phps.sh

sh phps.sh 5.2.17


作者: officeyz    时间: 2017-5-21 22:25

老大安装了PHP多版本后,网站打不开了;只有恢复镜像了,全国装和单独装都一样,是不是要安装什么组件证书之类的
作者: zhimaitech    时间: 2017-5-22 11:11

回复 1# admin


   升级到V3.2版本之后,站点和数据库的搜索有问题,站点搜索不到升级之后添加的站点数据,数据库都搜不到
  1. 当前版本: wdCP v3.2.4 最新 v3.2.4
复制代码

作者: m238200    时间: 2017-5-23 23:30

都 安装了,想删除多余的怎么办?
作者: linwenzhi7    时间: 2017-5-24 17:42

我正在单独安装sh phps.sh 5.3.29,希望不会出现什么问题。愿天保佑,
作者: linwenzhi7    时间: 2017-5-24 17:52

Configuring extensions
checking size of long... (cached) 8
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strtoll... yes
checking for atoll... yes
checking for strftime... (cached) yes
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... yes
checking for OpenSSL support... yes
checking for Kerberos support... no
checking for DSA_get_default_method in -lssl... yes
checking for X509_free in -lcrypto... yes
checking for pkg-config... /usr/bin/pkg-config
checking for PCRE library to use... bundled
checking whether to enable the SQLite3 extension... yes
checking bundled sqlite3 library... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
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 if we should use cURL for url streams... no
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... gcc -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_version_info 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 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 libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 2... /usr
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
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 FT_New_Face in -lfreetype... 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... 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 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 InterBase 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.9 (Final)
----Install Error: 5.3.29 -----------
作者: linwenzhi7    时间: 2017-5-24 19:29

这段又是什么鬼。
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.
作者: linwenzhi7    时间: 2017-5-24 20:15

已解决!!!!
作者: linwenzhi7    时间: 2017-5-24 20:17

wdcp 3.2 多php共存安装错误解决方案


安装php提示以上信息,官方解决方案:


    yum install -y icu libicu libicu-devel


再出错:


    Loaded plugins: fastestmirror
    Setting up Install Process
    Loading mirror speeds from cached hostfile
    Could not retrieve mirrorlist http://apt.sw.be/redhat/el6/en/mirrors-rpmforge error was
    14: PYCURL ERROR 6 - "Couldn't resolve host 'apt.sw.be'"
    * base: mirrors.aliyun.com
    * epel: mirrors.aliyun.com
    * extras: mirrors.aliyun.com
    * updates: mirrors.aliyun.com
    http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'apt.sw.be'"
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge. Please verify its path and try again


就是源不可用,修改dns无效,只能更换源了。
解决方案:

修改/etc/yum.repos.d/rpmforge.repo


如图,修改


    mirrorlist = http://apt.sw.be/redhat/el6/en/mirrors-rpmforge




    mirrorlist = http://mirrorlist.repoforge.org/el6/mirrors-rpmforge


再继续安装php版本即可。
作者: xiongshouyue    时间: 2017-5-25 12:59

新装的v3.2,怎么解决?

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


x86_64
CentOS release 6.8 (Final)
----Install Error: 5.2.17 -----------
作者: mmdeye    时间: 2017-5-30 08:33

回复 8# admin


   这样还是报错,wdcp3.2.3还是安装不了PHP,请问一下怎么解决!
作者: sy88618816    时间: 2017-5-30 09:34

试一下 看看 情况
作者: wangxx1030    时间: 2017-6-2 04:49

想把默认版本改成5.3.29 改不了
作者: xiongshouyue    时间: 2017-6-3 13:32

回复 44# wangxx1030


    你的php5.2安装好了吗?
作者: sihghalf    时间: 2017-6-5 13:47

Dependencies Resolved

================================================================================
Package       Arch            Version                   Repository        Size
================================================================================
Updating:
sudo          x86_64          1.8.6p7-22.el7_3          updates          735 k

Transaction Summary
================================================================================
Upgrade  1 Package

Total download size: 735 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
sudo-1.8.6p7-22.el7_3.x86_64.rpm                           | 735 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : sudo-1.8.6p7-22.el7_3.x86_64                                 1/2
  Cleanup    : sudo-1.8.6p7-21.el7_3.x86_64                                 2/2
  Verifying  : sudo-1.8.6p7-22.el7_3.x86_64                                 1/2
  Verifying  : sudo-1.8.6p7-21.el7_3.x86_64                                 2/2

Updated:
  sudo.x86_64 0:1.8.6p7-22.el7_3


这个咋处理捏!
作者: 66分享网    时间: 2017-6-6 17:23

wordpress从WDCP3.0升级到3.2后开启N+A组合后网站就打不开了,安装了PHP7与7.1,是什么原因?只能使用apche+PHP7才可以
作者: xiongshouyue    时间: 2017-6-7 09:30

求大侠来解决问题哟。
作者: yoer    时间: 2017-6-10 03:33

本帖最后由 yoer 于 2017-6-10 03:34 编辑

最后才看到老大发的
已知问题
CentOS 7.X系列系统,不再支持php-5.2/5.3的老版本PHP,可考虑使用CentOS 6.X


老大,安装了怎么卸载这个版本呢?是否也更新一下?(虽然不启动也没影响)
还有,我觉得这个提示应该放前面比较妥。。。(纯属建议)
作者: dj788    时间: 2017-6-12 00:19

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
env: cc: Permission denied
make: *** [ext/date/php_date.lo] Error 1


i686
CentOS release 6.5 (Final)
----Install Error: 5.4.45 -----------
多版本安装出错
作者: semseo    时间: 2017-6-13 01:36

楼主我发现你每次发的命令,我每次使用都是错的。能不能测试好才发啊?

安装方法如下:
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



可是我安装了以后,一个都没有装上,而且还是只装5.2,并且还装不上!!

Configuring libtool
checking build system type... x86_64-unknown-linux-gnu
checking for ld used by gcc... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking how to recognize dependent libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking the maximum length of command line arguments... (cached) 1966080
checking command to parse /usr/bin/nm -B output from gcc object... (cached) ok
checking for objdir... (cached) .libs
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking if gcc supports -fno-rtti -fno-exceptions... (cached) no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) no
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc 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
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes

creating libtool
appending configuration tag "CXX" to libtool

Generating files
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating sapi/cgi/fpm/fpm_autoconf.h
creating sapi/cgi/fpm/php-fpm.conf
creating sapi/cgi/fpm/php-fpm
creating main/php_config.h
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.

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
env: gcc: Permission denied
make: *** [ext/date/php_date.lo] Error 1


x86_64
CentOS release 6.8 (Final)
----Install Error: 5.2.17 -----------
作者: 龙在天涯    时间: 2017-6-13 14:23

可以自由切换php的版本了,太好了
作者: semseo    时间: 2017-6-14 17:29

真的是莫名其妙,昨天我按照你的命令,怎么都是安装失败,第一个5.2就失败,然后就安装这个wget http://down.wdlinux.cn/in/php_up53.sh  ,安装5.3成功 以后,,再来安装你的命令,居然就可以全部安装上去了??这是怎么回事????难道是之前我安装了旧版本的WDCP没有卸载干净,然后又安装了新的WDCP的原因???
作者: 87948876    时间: 2017-6-16 07:30

回复 8# admin


    Thank you for using PHP.

/bin/sh /root/src/php-5.3.29/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/root/src/php-5.3.29/ext/date/ -DPHP_ATOM_INC -I/root/src/php-5.3.29/include -I/root/src/php-5.3.29/main -I/root/src/php-5.3.29 -I/root/src/php-5.3.29/ext/date/lib -I/root/src/php-5.3.29/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/src/php-5.3.29/ext/mbstring/oniguruma -I/root/src/php-5.3.29/ext/mbstring/libmbfl -I/root/src/php-5.3.29/ext/mbstring/libmbfl/mbfl -I/root/src/php-5.3.29/ext/sqlite3/libsqlite -I/root/src/php-5.3.29/TSRM -I/root/src/php-5.3.29/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /root/src/php-5.3.29/ext/date/php_date.c -o ext/date/php_date.lo
env: gcc: Permission denied
make: *** [ext/date/php_date.lo] 错误 1


i686
CentOS release 6.8 (Final)
----Install Error: 5.3.29 -----------
作者: wave460    时间: 2017-6-16 22:42

安装php7,也设置了自动启动  每次重启服务器都不启动 设置默认,默认的还是php5  郁闷的要死啊
作者: 行者无疆    时间: 2017-6-18 23:34

安装的是7.1.4版本,最后出现下面的错误,求解哦

----------------------------------------------------------------
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: main/php_config.h is unchanged
config.status: executing default commands
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
env: cc: Permission denied
make: *** [ext/opcache/ZendAccelerator.lo] Error 1


x86_64
CentOS release 6.8 (Final)
----Install Error: 7.1.4 -----------
作者: admin8080    时间: 2017-6-23 15:55

回复 3# 虫子


    觉得了吗
作者: 龙在天涯    时间: 2017-6-23 17:59

安装了多个版本的php之后,通过程序怎么还是显示默认的,不是设置之后的
作者: 001yu    时间: 2017-6-24 00:00

本帖最后由 001yu 于 2017-6-24 00:02 编辑

老大,这个是啥情况啊,是5.3.29安装失败吗?但是在wdcp后台,只有5.2安装成功!!!hecking if iconv supports errno... 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 InterBase 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.8 (Final)
----Install Error: 5.3.29 -----------


提示错误!!!
作者: hai61006    时间: 2017-6-24 11:25

Thank you for using PHP.

config.status: creating php7.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/www.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
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
/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/zend_accelerator_blacklist.c -o ext/opcache/zend_accelerator_blacklist.lo
env: cc: Permission denied
make: *** [ext/opcache/zend_accelerator_blacklist.lo] Error 1
make: *** Waiting for unfinished jobs....
env: cc: Permission denied
make: *** [ext/opcache/ZendAccelerator.lo] Error 1


x86_64
CentOS Linux release 7.2.1511 (Core)
----Install Error: 7.1.4 -----------





老大我按照你的命令执行了还是这样不行的
作者: 潮音古韵    时间: 2017-6-24 23:23

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: main/php_config.h is unchanged
config.status: executing default commands
/bin/sh /root/src/php-5.6.30/libtool --silent --preserve-dup-deps --mode=compile cc  -Iext/standard/ -I/root/src/php-5.6.30/ext/standard/ -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/standard/html.c -o ext/standard/html.lo
env: cc: Permission denied
make: *** [ext/standard/html.lo] Error 1


x86_64
CentOS Linux release 7.3.1611 (Core)
----Install Error: 5.6.30 -----------
作者: 潮音古韵    时间: 2017-6-24 23:30

config.status: executing default commands
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
env: cc: Permission denied
make: *** [ext/opcache/ZendAccelerator.lo] Error 1


x86_64
CentOS Linux release 7.3.1611 (Core)
----Install Error: 7.1.4 -----------
作者: z4231    时间: 2017-6-26 11:49

我的是 78行报错
ln -s /www/wdlinux/mysql/lib/libmysql* /usr/lib/
因为这个mysql 是个文件
路径不对
修改成
ln -s /www/wdlinux/mysql-5.5.49/lib/libmysql* /usr/lib/
正确的路径就安装成功了
作者: 1013477247    时间: 2017-6-27 22:34

@admin
这么多人出现这个问题麻烦提供下解决方案,您上面发布的解决代码执行后还是无法安装,希望能提供详细教程,真心祝愿WDCP越办越好

作者: 1013477247    时间: 2017-6-29 22:04

回复 64# 1013477247
已经找到安装失败的原因,是应为云锁的原因,请执行命令后重新安装PHP即可安装成功,本人测试成功,其他测试成功的请回复
  1. echo y|/usr/local/yunsuo_agent/uninstall
复制代码

作者: w263756314    时间: 2017-7-5 19:15

v3升级到v3.2后,是没有安装zend,redis,memcache,opcache扩展,但是官方已经提供了脚本,直接执行即可,感谢wdlinux团队

wget http://down.wdlinux.cn/in/phps_zend.sh
sh phps_zend.sh

wget http://down.wdlinux.cn/in/phps_redis.sh
sh phps_redis.sh

wget http://down.wdlinux.cn/in/phps_memcache.sh
sh phps_memcache.sh

wget http://down.wdlinux.cn/in/phps_opcache.sh
sh phps_opcache.sh
作者: shuy020    时间: 2017-7-6 17:53

都是同样的问题,怎么解决这个问题?
作者: 972581428    时间: 2017-7-6 20:14

QQ截图20170706195631.png
2017-7-6 20:13
安装 5.5.38 或者 5.4.45 都是安装失败!!!老大 救命啊 啊!

图片附件: QQ截图20170706195631.png (2017-7-6 20:13, 49.19 KB) / 下载次数 9032
http://www.wdlinux.cn/bbs/attachment.php?aid=7722&k=54500a195c972691d2f2ffbe522c79e7&t=1679933642&sid=ph6144


作者: xtyly    时间: 2017-7-8 16:05

回复 40# linwenzhi7


    你好,请问你指的这个修改源是在哪里修改啊?怎么我找不到你这两行呢?
作者: xtyly    时间: 2017-7-8 16:07

回复 65# 1013477247


    你这是卸载云锁的命令吗?不必要卸载吧,关闭运行应该就可以吗
作者: daishuaustin    时间: 2017-7-9 12:49

楼主,你好。

我遇到个问题,希望你有空帮我看看,是否有办法解决。

我安装成功5.5.38版本的,点启动不行,手动运行启动代码,出现错误:
www/wdlinux/phps/55/etc/php-fpm.conf:21    unknown entry 'nate_timeout'
请问是怎么回事呢。烦请回复。谢谢!
作者: xtyly    时间: 2017-7-10 11:25

回复 40# linwenzhi7


    按照你这方法果然安装成功了,厉害,看来高手在民间啊
作者: hai61006    时间: 2017-7-12 19:29

已经找到安装失败的原因,是应为云锁的原因,请执行命令后重新安装PHP即可安装成功,本人测试成功,其他测试成功的请回复
  1. echo y|/usr/local/yunsuo_agent/uninstall
复制代码

作者: Edwin    时间: 2017-7-19 14:17

最开始安装的lnampphp是7.1的。但是需要用到php7.0于是乎按照上面的命令安装了7.0但是怎么把7.1给关了?
作者: qq1394880808    时间: 2017-7-20 12:23

回复 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. 如无特别求,可不必全部安装或启动,因为启动多一个,就会占资源多一份
复制代码

作者: Alex0221    时间: 2017-8-3 22:40

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

我只是想多装一个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

这是什么原因呢?
作者: 2939293859    时间: 2017-8-6 00:50

回复 15# 虫子

x86_64
CentOS release 6.8 (Final)
----Install Error: 7.1.4 -----------
安装到最后提示这个错误的,请将云锁删掉后就正常了。找了大半夜原因终于解决了。
作者: 龙在天涯    时间: 2017-9-6 15:47

回复 51# semseo


  检查php.ini中的使用内存,建议设置成512M
作者: EchoMiller    时间: 2017-9-15 17:43

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 -----------
作者: EchoMiller    时间: 2017-9-15 17:44

求解决方案啊
作者: EchoMiller    时间: 2017-9-16 10:28

回复 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 -----------


帮忙看看,大神
作者: yoer    时间: 2017-9-24 20:30

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



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


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

图片附件: QQ截图20170924200530.png (2017-9-24 20:30, 37.46 KB) / 下载次数 8772
http://www.wdlinux.cn/bbs/attachment.php?aid=8020&k=c920883fc19d8ebf55a154b412de7273&t=1679933642&sid=ph6144


作者: fgfeng    时间: 2017-9-25 09:07

回复 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/
作者: pengdong17    时间: 2017-9-25 11:57

回复 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的版本安装成功了
作者: qc-WDCP    时间: 2017-10-26 17:56

新的服务器,只装一个默认的5.4也切换不成功,一直是5.5
作者: nwjun    时间: 2017-10-27 14:33

都是这个问题,我的也是安装不了,提示安装错误,按百度的意思操作了一下,安装7.1.4的成功了,在安装其他版本还是一样的错误,不好使!!
作者: tianyj    时间: 2017-11-7 19:45

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 -----------
安装出错了,老大这怎么解决
作者: qunhoo    时间: 2017-12-6 12:13

先单独安装了5.6之后,又全部安装了。然后新安装的里面,5.6的启动不了。
怀疑原来的5.6还在运行,但是不知道怎么删除原来的。
作者: ok334177485    时间: 2018-1-28 23:23

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文件?怎么弄
作者: ok334177485    时间: 2018-1-28 23:24

我的是:
系统名称: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
作者: liucai82    时间: 2018-1-31 15:56

多版本PHP的手动启动|停止|重起
如:5.5
/www/wdlinux/phps/55/bin/php-fpm start
运行之后报错。
多版本,只有点5.2版本有效 其它的版本都是已安装未运行。
作者: xiayitian    时间: 2018-3-14 11:17

php 启动失败了,各个版本都是一样,这个有了解的吗?
/www/wdlinux/phps/55/bin/php-fpm start
Starting php-fpm /www/wdlinux/phps/55/sbin/php-fpm: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
failed
作者: iemail520    时间: 2018-3-14 19:35

[root@chounong ~]# wget http://down.wdlinux.cn/in/phps.sh
--2018-03-14 18:53:35--  http://down.wdlinux.cn/in/phps.sh
Resolving down.wdlinux.cn (down.wdlinux.cn)... 119.146.223.143
Connecting to down.wdlinux.cn (down.wdlinux.cn)|119.146.223.143|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6019 (5.9K) [application/octet-stream]
Saving to: ?&#244848;hps.sh.1?

100%[====================>] 6,019       --.-K/s   in 0.01s   

2018-03-14 18:53:35 (472 KB/s) - ?&#244848;hps.sh.1?&#245792;saved [6019/6019]

[root@chounong ~]# sh phps.sh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package gcc-4.8.5-16.el7_4.2.x86_64 already installed and latest version
Package gcc-c++-4.8.5-16.el7_4.2.x86_64 already installed and latest version
Package 1:make-3.82-23.el7.x86_64 already installed and latest version
Package sudo-1.8.19p2-11.el7_4.x86_64 already installed and latest version
Package autoconf-2.69-11.el7.noarch already installed and latest version
Package libtool-ltdl-devel-2.4.2-22.el7_3.x86_64 already installed and latest version
Package gd-devel-2.0.35-26.el7.x86_64 already installed and latest version
Package freetype-devel-2.4.11-15.el7.x86_64 already installed and latest version
Package libxml2-devel-2.9.1-6.el7_2.3.x86_64 already installed and latest version
Package libjpeg-turbo-devel-1.2.90-5.el7.x86_64 already installed and latest version
Package 2:libpng-devel-1.5.13-7.el7_2.x86_64 already installed and latest version
Package 1penssl-devel-1.0.2k-8.el7.x86_64 already installed and latest version
Package libcurl-devel-7.29.0-42.el7_4.1.x86_64 already installed and latest version
Package patch-2.7.1-8.el7.x86_64 already installed and latest version
Package libmcrypt-devel-2.5.8-13.el7.x86_64 already installed and latest version
Package mhash-devel-0.9.9.9-10.el7.x86_64 already installed and latest version
Package ncurses-devel-5.9-14.20130511.el7_4.x86_64 already installed and latest version
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Package libcap-devel-2.22-9.el7.x86_64 already installed and latest version
Package ntp-4.2.6p5-25.el7.centos.2.x86_64 already installed and latest version
No package sysklogd available.
Package diffutils-3.3-4.el7.x86_64 already installed and latest version
Package sendmail-8.14.7-5.el7.x86_64 already installed and latest version
Package iptables-1.4.21-18.3.el7_4.x86_64 already installed and latest version
Package unzip-6.0-16.el7.x86_64 already installed and latest version
Package cmake-2.8.12.2-2.el7.x86_64 already installed and latest version
Package wget-1.14-15.el7_4.1.x86_64 already installed and latest version
Package re2c-0.14.3-2.el7.x86_64 already installed and latest version
Package bison-3.0.4-1.el7.x86_64 already installed and latest version
Package icu-50.1.2-15.el7.x86_64 already installed and latest version
Package libicu-50.1.2-15.el7.x86_64 already installed and latest version
Package libicu-devel-50.1.2-15.el7.x86_64 already installed and latest version
Package net-tools-2.0-0.22.20131004git.el7.x86_64 already installed and latest version
Package psmisc-22.20-15.el7.x86_64 already installed and latest version
Package 2:vim-enhanced-7.4.160-2.el7.x86_64 already installed and latest version
Nothing to do
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/
其他版本不能从新安装
[root@chounong wdlinux]# cd  phps
[root@chounong phps]# ls
55
怎么解决多版本安装
作者: 2691643289    时间: 2018-3-19 11:40

正在安装中,希望能稳定
作者: m238200    时间: 2018-3-25 09:59

yum install -y icu libicu libicu-devel 什么意思
作者: chipechan    时间: 2018-3-29 22:54

怎么赚金币啊
作者: caokun    时间: 2018-4-12 12:38

开启php7出现错误
作者: xzone10    时间: 2018-4-14 11:21

本帖最后由 xzone10 于 2018-4-14 11:22 编辑

aliiyun linux 5.7系统
安装了多版本php后,只有5.2可以启动,其他在后台启动不了;
其他php版本在后台点击启动按钮是有启动成功提示的,但是刷新后那个版本还是未启动;
然后只能nginx+apahce或者单apache模式;但是网站访问比较卡;
如果切换单nginx模式就出现502报错;

求大大们解答下要如何解决??
作者: xzone10    时间: 2018-4-14 23:58

本帖最后由 xzone10 于 2018-4-15 00:09 编辑

@admin
补充,ssh手动执行启动php某个版本提示如下
/www/wdlinux/phps/54/bin/php-fpm start

Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?
Starting php-fpm [14-Apr-2018 23:57:10] ERROR: No pool defined. at least one pool section must be specified in config file
[14-Apr-2018 23:57:10] ERROR: failed to post process the configuration
[14-Apr-2018 23:57:10] ERROR: FPM initialization failed
作者: 会飞翔的鱼    时间: 2018-4-16 10:31

6666666666666666




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