五:安装php5,php5必须有libxml2支持!
a.安装libxml2
下载地址:http://download.csdn.net/detail/cyuyan112233/4049558
# cd /home/xiutuo/software/
# tar -zxf libxml2-2.6.19.tar.gz
# cd libxml2-2.6.19
# mkdir -p /usr/local/libxml2
# ./configure --prefix=/usr/local/libxml2
# make; make install
b.安装 libxslt(可选安装,你可以不安装)
下载地址:http://download.csdn.net/detail/cyuyan112233/4049928
# cd /home/xiutuo/software/
# tar -zxf libxslt-1.1.15.tar.gz
# mkdir -p /usr/local/libxslt
# cd libxslt-1.1.15
./configure --prefix=/usr/local/libxslt --with-libxml-prefix=/usr/local/libxml2
# make; make install
支持curl
e.安装Curl库
http://curl.haxx.se/download.html
# cd /home/xiutuo/software/
# tar -zxf curl-7.15.0.tar.gz
# mkdir -p /usr/local/curl
# ./configure --prefix=/usr/local/curl
./configure --prefix=/usr/local/curl --with-krb4 --with-gssapi --with-spnego --enable-ares //新加的,少了几个参数
# make; make install
支持mssql安装freetds
下载地址:http://download.csdn.net/detail/cyuyan112233/4049934
./configure --prefix= --with-tdsver=8.0 --enable-msdblib --with-gnu-ld --enable-shared --enable-static
make
make install
安装php
下载地址:
PHP版本:php-5.2.17.tar.gz
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql/ --with-curl=/usr/local/curl --enable-ftp --with-libxml-dir=/usr/local/libxml2 --with-xsl=/usr/local/libxslt/ --with-gd=/usr/local/gd2/ --with-jpeg-dir=/usr/local/jpeg7/ --with-zlib-dir=/usr/local/lib/ --with-png-dir=/usr/lib/ --with-freetype-dir=/usr/local/freetype/ --enable-mbstring --with-mysqli=/usr/local/mysql/bin/mysql_config -with-pdo-mysql=/usr/local/mysql/ --with-mssql=/usr/local/freetds --with-pdo-dblib=/usr/local/freetds