手记

centos 安装 php5.6

php 下载 http://cn2.php.net/downloads.phphttp://cn2.php.net/downloads.php

libxml2 下载 ftp://xmlsoft.org/libxml2/

zlib 下载 http://www.zlib.net/

解压下载到的软件

12tar zxvf php-5.6.2.tar.gz tar zxvf libxml2-2.7.2.tar.gz

安装libxml2

123cd libxml2-2.7.2./configure --prefix=/usr/local/libxml2make && make install

安装php5.6


cd php5.6.2./configure --prefix=/usr/local/webserver/php --with-config-file-path=/usr/local/webserver/php/lib --with-apxs2=/usr/local/webserver/apache2/bin/apxs --with-mysql=/usr/local/store/mysql/ --with-libxml-dir=/usr/local/libxml2/ --with-zlib-dir=/usr/local/zlib/ --with-mysqli=/usr/local/store/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets --enable-fpmmake && make install/usr/local/webserver/php/bin/php -i
yum install m4 autoconf


0人推荐
随时随地看视频
慕课网APP