How do I upgrade from PHP 5.1 to 5.3 in RHEL 5?
Environment
- Red Hat Enterprise Linux 5 (RHEL)
- PHP 5.1
- MySQL
Issue
- Our installation of package
php-5.1.xis integrated withmysql. How can I updatephp-5.1.Xtophp-5.3.Xwithout any data loss? - Need to upgrade PHP from version 5.1.6 to 5.3
Resolution
- To install
php53first need to remove 5.1 version of thephppackage, as shown below:
- Remove the
phppackage:
# yum remove php php-common
- Install
php53package:
# yum install php53
Note: If the data exist in the mysql database then removing PHP-5.1.6 wont led to data loss only you need to do edit /etc/php.ini.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
