There seems to be a lot of people getting errors on popular CMS’s like WordPress and Joomla! after upgrading php so here is a quick and easy guide for users on CentOS 5.
-
root login with Putty
-
Type of the following:
a) rpm -ihv http://mirror.steadfast.net/misc/iworx/php52/cos5/i386/iworx-php-release-5.2-2.steadfast.noarch.rpm
b) yum remove php-pdo php-pear
c) service httpd restart -
If you get any errors about a package being inconpatable with the upgrade then add that to the ‘yum remove package_name’
-
Type the following:
a) /etc/init.d/mysqld stop
b) yum install mysql mysql-devel mysql-server
c) /etc/init.d/httpd stop
d) yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel -
Type the following
a) /etc/init.d/httpd start
b) /etc/init.d/mysqld start
Let me know if that works for you