This small guide shows you how to install PHP 5.3.6 on CentOS 5 64bit 32 bit, this will work with any control panel like Virtualmin and no need to upgrade apache web server ( httpd ), Using a PHP 5.3.6 RPM for CentOS / RHEL. This guide assumes you have shell access with a super user (root) account to your server.
Install Atomic YUM repository on CentOSwget -q -O atomic http://www.atomicorp.com/installers/atomic |sh
chmod 655 atomic
./atomic
Update / Upgrade PHPIf you already have PHP installed and wish to upgrade to 5.3.6 then run the following:
yum update php
Check what packages are going to be updated and proceed if it looks sane.
If you dont currently have PHP installed then run the following:
yum install php
Check what other deps are going to be pulled and proceed if you are happy.
Restart Apache and verify the new version is working using phpinfo.php
/etc/init.d/httpd restart
For this create a file in a directory served up by Apache containing the following information:
<?php phpinfo(); ?>
Call the file phpinfo.php and browse to the file in a web browser e.g
http://yourdomain.com/phpinfo.phpAt the top of the page it should display the PHP version Apache is using.
Note you will need to update ionCube Loader to the same version, guide for this coming soon
If you got error then you may need to update Mysql
yum update mysql
and then try again.