PHP的安装
1.下载安装php支持包
(1) GD2
# cd /usr/local/src
#wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.41.tar.gz
#cd GD-2.41
#perl Makefile.PL
#make; make install
(2) LibXML2
# cd /usr/local/src
#wget http://www.xmlsoft.org/sources/libxml2-2.6.30.tar.gz
# tar xzvf libxml2-2.6.30.tar.gz
# cd libxml2-2.6.30
# ./configure –prefix=/usr/local/libxml2
# make; make install
2.编译安装
#cd /usr/local/src
#wget http://cn.php.net/distributions/php-5.2.9.tar.gz
# tar -zvxf php-5.2.9.tar.gz
# cd php-5.2.9
#./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql –with-libxml-dir=/usr/local/libxml2 –with-gd –enable-gd-native-ttf –with-jpeg-dir –with-png-dir –with-bz2 –with-freetype-dir –with-iconv-dir –with-zlib –enable-mbstring –with-mcrypt –disable-ipv6 –disable-cgi –disable-cli
