环境:CentOS
软件版本:PHP 5.6.12
下载php5.6.12
wget http:
//cn2
.php.net
/distributions/php-5
.6.12.
tar
.gz
解压 php 5.6.12 源码包
-zxvf php-5.6.12.
.gz -c
/src
编译安装
cd
php-5.6.12/
.
/configure
--help
# 查看配置参数,因为每个版本的配置参数不一样
--prefix=
/usr/local/php-5
.6.12 --with-config-
file
-path=
/usr/local/php5
.6.12
/etc
--
enable
-mb --
-bcmath --
-mbstring --
-sockets -2 --with-curl --
-
ftp
-sockets --disable-ipv6 --with-gd --with-jpeg-
dir
--with-png-
--with-freetype-
-gd-native-ttf --with-iconv-t --with-zlib --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --with-mysql=mysqlnd --
-dom --
-xml --
-fpm
323 .
-sockets --witrl --
var cpro_id = "u6885494";