欢迎各位兄弟 发布技术文章
这里的技术是共享的
自v3.2开始,wdcp支持多PHP版本共存共用和切换,可根据需求灵活选择和使用从v3.0/3.1升级的用户,还需要再安装下多版本的PHP环境,才可完全正常使用和切换安装方法如下:wget http://down.wdlinux.cn/in/phps.shsh 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 | |
Configuring extensionschecking size of long... (cached) 8checking size of int... (cached) 4checking for int32_t... yeschecking for uint32_t... yeschecking for sys/types.h... (cached) yeschecking for inttypes.h... (cached) yeschecking for stdint.h... (cached) yeschecking for string.h... (cached) yeschecking for stdlib.h... (cached) yeschecking for strtoll... yeschecking for atoll... yeschecking for strftime... (cached) yeschecking for gettimeofday... (cached) yeschecking whether to enable LIBXML support... yeschecking libxml2 install dir... /usrchecking for xml2-config path... /usr/bin/xml2-configchecking whether libxml build works... yeschecking for OpenSSL support... yeschecking for Kerberos support... nochecking whether to use system default cipher list instead of hardcoded value... nochecking for RAND_egd... nochecking for pkg-config... /usr/bin/pkg-configchecking for PCRE library to use... bundledchecking whether to enable PCRE JIT functionality... yeschecking whether to enable the SQLite3 extension... yeschecking bundled sqlite3 library... yeschecking for ZLIB support... yeschecking if the location of ZLIB install directory is defined... nochecking for zlib version >= 1.2.0.4... 1.2.3checking for gzgets in -lz... yeschecking whether to enable bc style precision math functions... yeschecking for BZip2 support... nochecking whether to enable calendar conversion support... nochecking whether to enable ctype functions... yeschecking for cURL support... yeschecking for cURL 7.10.5 or greater... libcurl 7.19.7checking for SSL support in libcurl... yeschecking how to run the C preprocessor... cc -Echecking for openssl support in libcurl... nochecking for gnutls support in libcurl... nochecking for curl_easy_perform in -lcurl... yeschecking for curl_easy_strerror in -lcurl... yeschecking for curl_multi_strerror in -lcurl... yeschecking for QDBM support... nochecking for GDBM support... nochecking for NDBM support... nochecking for TCADB support... nochecking for Berkeley DB4 support... nochecking for Berkeley DB3 support... nochecking for Berkeley DB2 support... nochecking for DB1 support... nochecking for DBM support... nochecking for CDB support... nochecking for INI File support... nochecking for FlatFile support... nochecking whether to enable DBA interface... nochecking whether to enable DOM support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking for ENCHANT support... nochecking whether to enable EXIF (metadata from images) support... nochecking for fileinfo support... nochecking whether to enable input filter support... yeschecking pcre install prefix... nochecking whether to enable FTP support... yeschecking OpenSSL dir for FTP... nochecking for GD support... yeschecking for the location of libwebp... nochecking for the location of libjpeg... yeschecking for the location of libpng... yeschecking for the location of libXpm... nochecking for FreeType 2... /usrchecking whether to enable truetype string function in GD... yeschecking whether to enable JIS-mapped Japanese font support in GD... noIf configure fails try --with-webp-dir=<DIR>checking for jpeg_read_header in -ljpeg... yeschecking for png_write_image in -lpng... yesIf configure fails try --with-xpm-dir=<DIR>checking for fabsf... yeschecking for floorf... yeschecking for GNU gettext support... yeschecking for bindtextdomain in -lintl... nochecking for bindtextdomain in -lc... yeschecking for ngettext in -lc... yeschecking for dngettext in -lc... yeschecking for dcngettext in -lc... yeschecking for bind_textdomain_codeset in -lc... yeschecking for GNU MP support... nochecking for mhash support... yeschecking whether to enable hash support... yeschecking whether byte ordering is bigendian... (cached) nochecking size of short... (cached) 2checking size of int... (cached) 4checking size of long... (cached) 8checking size of long long... (cached) 8checking for iconv support... yeschecking for iconv... yeschecking if iconv is glibc's... yeschecking if iconv supports errno... nochecking if iconv supports //IGNORE... nochecking if your cpp allows macro usage in include lines... yeschecking for IMAP support... nochecking for IMAP Kerberos support... nochecking for IMAP SSL support... nochecking for Firebird support... nochecking whether to enable internationalization support... yeschecking for icu-config... nochecking for location of ICU headers and libraries... not foundconfigure: 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_64CentOS release 6.8 (Final)----Install Error: 7.1.4 ----------- | |
我勒个去 | |
yum install -y icu libicu libicu-devel | |
checking for getprotobyname... yeschecking for getprotobynumber... yeschecking for getservbyname... yeschecking for getservbyport... yeschecking for getrusage... yeschecking for gettimeofday... yeschecking for gmtime_r... yeschecking for getpwnam_r... yeschecking for getgrnam_r... yeschecking for getpwuid_r... yeschecking for grantpt... yeschecking for inet_ntoa... yeschecking for inet_ntop... yeschecking for inet_pton... yeschecking for isascii... yeschecking for link... yeschecking for localtime_r... yeschecking for lockf... yeschecking for lchown... yeschecking for lrand48... yeschecking for memcpy... yeschecking for memmove... yeschecking for mkstemp... yeschecking for mmap... yeschecking for nl_langinfo... yeschecking for perror... yeschecking for poll... yeschecking for ptsname... yeschecking for putenv... yeschecking for realpath... yeschecking for random... yeschecking for rand_r... yeschecking for regcomp... yeschecking for res_search... (cached) yeschecking for scandir... yeschecking for setitimer... yeschecking for setlocale... yeschecking for localeconv... yeschecking for setenv... yeschecking for setpgid... yeschecking for setsockopt... yeschecking for setvbuf... yeschecking for shutdown... yeschecking for sin... yeschecking for snprintf... yeschecking for srand48... yeschecking for srandom... yeschecking for statfs... yeschecking for statvfs... yeschecking for std_syslog... nochecking for strcasecmp... yeschecking for strcoll... yeschecking for strdup... yeschecking for strerror... yeschecking for strftime... yeschecking for strnlen... yeschecking for strptime... yeschecking for strstr... yeschecking for strtok_r... yeschecking for symlink... yeschecking for tempnam... yeschecking for tzset... yeschecking for unlockpt... yeschecking for unsetenv... yeschecking for usleep... yeschecking for utime... yeschecking for vsnprintf... yeschecking for nanosleep... checking for nanosleep in -lrt... yesyeschecking for getaddrinfo... yeschecking for strlcat... nochecking for strlcpy... nochecking for getopt... yeschecking whether utime accepts a null argument... yeschecking for working alloca.h... (cached) yeschecking for alloca... yeschecking for declared timezone... yeschecking for type of reentrant time-related functions... POSIXchecking for readdir_r... yeschecking for type of readdir_r... POSIXchecking for in_addr_t... yeschecking for crypt_r... noGeneral settingschecking whether to include gcov symbols... nochecking whether to include debugging symbols... nochecking layout of installed files... PHPchecking path to configuration file... /www/wdlinux/phps/52/etcchecking where to scan for configuration files... checking whether to enable safe mode by default... nochecking for safe mode exec dir... /usr/local/php/binchecking whether to enable PHP's own SIGCHLD handler... nochecking whether to enable magic quotes by default... nochecking whether to explicitly link against libgcc... nochecking whether to enable short tags by default... yeschecking whether to enable dmalloc... nochecking whether to enable IPv6 support... yeschecking how big to make fd sets... using system defaultConfiguring extensionschecking size of long... (cached) 8checking size of int... (cached) 4checking for int32_t... yeschecking for uint32_t... yeschecking for sys/types.h... (cached) yeschecking for inttypes.h... (cached) yeschecking for stdint.h... (cached) yeschecking for string.h... (cached) yeschecking for stdlib.h... (cached) yeschecking for strtoll... yeschecking for atoll... yeschecking for strftime... (cached) yeschecking whether to enable LIBXML support... yeschecking libxml2 install dir... /usrchecking for xml2-config path... /usr/bin/xml2-configchecking whether libxml build works... yeschecking for OpenSSL support... yeschecking for Kerberos support... nochecking for DSA_get_default_method in -lssl... yeschecking for pkg-config... /usr/bin/pkg-configchecking for PCRE support... yeschecking for ZLIB support... yeschecking if the location of ZLIB install directory is defined... nochecking for gzgets in -lz... yeschecking whether to enable bc style precision math functions... yeschecking for BZip2 support... nochecking whether to enable calendar conversion support... nochecking whether to enable ctype functions... yeschecking for cURL support... yeschecking if we should use cURL for url streams... nochecking for cURL in default path... found in /usrchecking for cURL 7.10.5 or greater... libcurl 7.19.7checking for SSL support in libcurl... yeschecking how to run the C preprocessor... gcc -Echecking for openssl support in libcurl... nochecking for gnutls support in libcurl... nochecking for curl_easy_perform in -lcurl... yeschecking for curl_version_info in -lcurl... yeschecking for curl_easy_strerror in -lcurl... yeschecking for curl_multi_strerror in -lcurl... yeschecking for QDBM support... nochecking for GDBM support... nochecking for NDBM support... nochecking for Berkeley DB4 support... nochecking for Berkeley DB3 support... nochecking for Berkeley DB2 support... nochecking for DB1 support... nochecking for DBM support... nochecking for CDB support... nochecking for INI File support... nochecking for FlatFile support... nochecking whether to enable DBA interface... nochecking whether to enable dbase support... nochecking whether to enable DOM support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking whether to enable EXIF (metadata from images) support... yeschecking for FrontBase SQL92 (fbsql) support... nochecking for FDF support... nochecking whether to enable input filter support... yeschecking pcre install prefix... nochecking whether to enable FTP support... yeschecking OpenSSL dir for FTP... nochecking for GD support... yeschecking for the location of libjpeg... yeschecking for the location of libpng... yeschecking for the location of libXpm... nochecking for FreeType 1.x support... nochecking for FreeType 2... yeschecking for T1lib support... nochecking whether to enable truetype string function in GD... yeschecking whether to enable JIS-mapped Japanese font support in GD... nochecking for fabsf... yeschecking for floorf... yesconfigure: error: libjpeg.(a|so) not found.ln: creating symbolic link `/usr/lib/libmysql*': File existsmake: *** No targets specified and no makefile found. Stop.x86_64CentOS release 6.4 (Final)----Install Error: 5.2.17 -----------老大安装失败是怎么回事 | |
回复 8# admin config.status: creating main/php_config.hconfig.status: executing default commandsconfigure: 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.locc: Internal error: Killed (program cc1)Please submit a full bug report.See <http://bugzilla.redhat.com/bugzilla> for instructions.make: *** [ext/opcache/Optimizer/zend_inference.lo] Error 1x86_64CentOS release 6.8 (Final)----Install Error: 7.1.4 ----------- | |
我勒个去 | |
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 | |
Loaded plugins: fastestmirrorSetting up Install ProcessLoading mirror speeds from cached hostfile
* base: ftp.riken.jp
* epel: ftp.riken.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jpPackage gcc-4.4.7-18.el6.x86_64 already installed and latest versionPackage gcc-c++-4.4.7-18.el6.x86_64 already installed and latest versionPackage 1:make-3.81-23.el6.x86_64 already installed and latest versionPackage sudo-1.8.6p3-27.el6.x86_64 already installed and latest versionPackage autoconf-2.63-5.1.el6.noarch already installed and latest versionPackage libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 already installed and latest versionPackage gd-devel-2.0.35-11.el6.x86_64 already installed and latest versionPackage freetype-devel-2.3.11-17.el6.x86_64 already installed and latest versionPackage libxml2-devel-2.7.6-21.el6_8.1.x86_64 already installed and latest versionPackage libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64 already installed and latest versionPackage 2:libpng-devel-1.2.49-2.el6_7.x86_64 already installed and latest versionPackage openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest versionPackage libcurl-devel-7.19.7-53.el6_9.x86_64 already installed and latest versionPackage patch-2.6-6.el6.x86_64 already installed and latest versionPackage libmcrypt-devel-2.5.8-9.el6.x86_64 already installed and latest versionPackage mhash-devel-0.9.9.9-3.el6.x86_64 already installed and latest versionPackage ncurses-devel-5.7-4.20090207.el6.x86_64 already installed and latest versionPackage bzip2-1.0.5-7.el6_0.x86_64 already installed and latest versionPackage libcap-devel-2.16-5.5.el6.x86_64 already installed and latest versionPackage ntp-4.2.6p5-10.el6.centos.2.x86_64 already installed and latest versionNo package sysklogd available.Package diffutils-2.8.1-28.el6.x86_64 already installed and latest versionPackage sendmail-8.14.4-9.el6_8.1.x86_64 already installed and latest versionPackage iptables-1.4.7-16.el6.x86_64 already installed and latest versionPackage unzip-6.0-5.el6.x86_64 already installed and latest versionPackage cmake-2.8.12.2-4.el6.x86_64 already installed and latest versionPackage wget-1.12-10.el6.x86_64 already installed and latest versionPackage re2c-0.13.5-1.el6.x86_64 already installed and latest versionPackage bison-2.4.1-5.el6.x86_64 already installed and latest versionPackage icu-4.2.1-14.el6.x86_64 already installed and latest versionPackage libicu-4.2.1-14.el6.x86_64 already installed and latest versionPackage libicu-devel-4.2.1-14.el6.x86_64 already installed and latest versionPackage net-tools-1.60-114.el6.x86_64 already installed and latest versionPackage psmisc-22.6-24.el6.x86_64 already installed and latest versionPackage 2:vim-enhanced-7.4.629-5.el6_8.1.x86_64 already installed and latest versionNothing to do我把web目录备份了下,直接删掉了 /www/wdlinux,打算重新安装v32,但是问题出现了:(最后一屏的出错信息)----------------------------------------------------------------------Libraries have been installed in: /usr/libIf you ever happen to want to link against installed librariesin a given directory, LIBDIR, you must either use libtool, andspecify 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 formore 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) ;; \ esacmake[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 ; fiif 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
; fimv: cannot move `/usr/lib/preloadable_libiconv.so.new' to `/usr/lib/preloadable_libiconv.so': Permission deniedmake[1]: *** [install] Error 1make[1]: Leaving directory `/root/v32/src/libiconv-1.14/preload'make: *** [install] Error 2x86_64CentOS release 6.8 (Final)----Install Error: libiconv install err ----------- | |