1,下载php5.4版本,参考网站安装:https://secure.php.net/manual/en/install.unix.apache2.php
2,源码安装php时出现错误:configure error xml2-config not found. please check your libxml2 installation
使用yum安装libxml2以及libxml2-devel包