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.x
is integrated withmysql
. How can I updatephp-5.1.X
tophp-5.3.X
without any data loss? - Need to upgrade PHP from version 5.1.6 to 5.3
Resolution
- To install
php53
first need to remove 5.1 version of thephp
package, as shown below:
- Remove the
php
package:
# yum remove php php-common
- Install
php53
package:
# 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.
Comments