Learnt a neat trick to update/upgrade Php 4.4.7 on my test server to php 5.2.5 running centos 5 and direct admin as control panel. Took me a while to google up all the answers, so thought why not just put a small tutorial to install php 5.2.5 on apache2 based machine with direct admin on it.
First for sake of it run
yum install libxml-devel (this command on centos upgrades libxml or installs it if its mising and trust me you need to do this cause it saves time, otherwise php compile will end abruptly giving error :
Configuring extensions
checking whether to enable LIBXML support… yes
checking libxml2 install dir… no
checking for xml2-config path…
configure: error: xml2-config not found. Please check your libxml2 installation.
*** There was an error while trying to configure php. Check the configure.php file
Better safe than sorry
. (more…)




