安装php5

cd /home/tmp
tar -zxvf php-4.2.3.tar.gz
mv php-4.2.3.tar.gz php
cd php

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/lib --with-libxml-dir=/usr/local/libxml2/bin/ --with-mysql

make
make install

--with-libxml-dir=/usr/local/libxml2/bin/ 也可以写成 --with-xml

原文地址:https://www.cnblogs.com/eoiioe/p/1325162.html