Upgrade PHP 5.1 or 5.2 to 5.3 on CentOS

Hits: 6463  

CentOS 5.5 have PHP 5.2 whereas CentOS 5.6 have package PHP 5.3

Upgrade CentOS

# yum update

Upgrade PHP 5.2 to PHP 5.3

# yum list installed | grep php

Now check packages php53 available or not?

# yum search php53 | grep php

If above command return list of php53 packages .. then stop Apache

# service httpd stop

Remove old php

# yum remove php php-cli php-common php-devel php-gd php-mbstring php-curl …. and many more

Now install php53 available packages

# yum install php53 php53-cli php53-common php53-devel php53-gd php53-curl php53-json …. and many more

Then check new php version

# php -v

It will return PHP 5.3.x 🙂


Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch

Leave a Reply

Your email address will not be published.