3、安装PHP5
下载:http://cn2.php.net/distributions/php-5.4.0.tar.gz
- #tar -zxvf php-5.4.0.tar.gz
- #cd php-5.4.0
- #./configure--with-apxs2=/usr/local/apache2/bin/apxs--with-libxml-dir=~/software/php/libxml2--with-config-file-path=/usr/local/lib
这一步如果配置没错应该会有以下提示:
- #make -j8
这一步会提示don't forget ‘make test’
中途会有提
- #make test,输入“N”即可。
- #make install
这一步完成后,将php目录下的php.ini-dev*拷贝到/usr/local/lib中重命名为php.ini
