What is the best way to upgrade PHP4 to PHP5 on CentOS? I see from "rpm -qa" that I'm running PHP-4.3.9.
Should I uninstall this old PHP4 package and then reinstall PHP5? Or is there some cool yum upgrade thing I might run?
This is a VMware virtual box for testing, so I'm more concerned about learning what to do, rather than interrupting anything.
On 7/3/07, Rogelio Bastardo scubacuda@gmail.com wrote:
What is the best way to upgrade PHP4 to PHP5 on CentOS? I see from "rpm -qa" that I'm running PHP-4.3.9.
php5 is not part of the base distribution for centos4. You can upgrade to centos5, which is more current in terms of software versioning. Or you can install php5 from the centosplus repository.
To do this, you'd issue a command like 'yum --enablerepo centosplus install php php-pear'
To do this, you'd issue a command like 'yum --enablerepo centosplus install php php-pear'
Thanks! I'm reading over all the details on the following URL:
http://mirror.centos.org/centos/4/centosplus/Readme.txt
This section was especially helpful:
------------------------- php-5.x.x-x.centos4 ------------------------- This is php-5 for CentOS-4. It replaces the php-4.3.9 that is currently in CentOS-4. In order to upgrade a current php-4 install, you must remove php-domxml first and then do:
yum --enablerepo=centosplus upgrade php*
or to do and install, use this command:
yum --enablerepo=centosplus --exclude=php-domxml install php*
(or install individually the files that you need)
See here:
http://wiki.centos.org/Repositories/CentOSPlus
Basically you just enable the centosplus repo, add include=php* mysql* under the centosplus repo in /etc/yum.repos.d/CentOS-Base.repo and add exclude=php* mysql* to the base and updates repos. Then do a yum upgrade and you should be in business.
If you also upgrade mysql to v.5 with centosplus don't forget to run the 'mysql_upgrade' command after doing the yum upgrade.
Regards, Devin
On 7/3/07, Rogelio Bastardo scubacuda@gmail.com wrote:
To do this, you'd issue a command like 'yum --enablerepo centosplus install php php-pear'
Thanks! I'm reading over all the details on the following URL:
http://mirror.centos.org/centos/4/centosplus/Readme.txt
This section was especially helpful:
php-5.x.x-x.centos4
This is php-5 for CentOS-4. It replaces the php-4.3.9 that is currently in CentOS-4. In order to upgrade a current php-4 install, you must remove php-domxml first and then do:
yum --enablerepo=centosplus upgrade php*
or to do and install, use this command:
yum --enablerepo=centosplus --exclude=php-domxml install php*
(or install individually the files that you need) _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Sorry, that should be 'yum update' not 'yum upgrade'. My bad :(
On 7/3/07, Devin Henderson devin.lists@gmail.com wrote:
See here:
http://wiki.centos.org/Repositories/CentOSPlus
Basically you just enable the centosplus repo, add include=php* mysql* under the centosplus repo in /etc/yum.repos.d/CentOS-Base.repo and add exclude=php* mysql* to the base and updates repos. Then do a yum upgrade and you should be in business.
If you also upgrade mysql to v.5 with centosplus don't forget to run the 'mysql_upgrade' command after doing the yum upgrade.
Regards, Devin
On 7/3/07, Rogelio Bastardo scubacuda@gmail.com wrote:
To do this, you'd issue a command like 'yum --enablerepo centosplus install php php-pear'
Thanks! I'm reading over all the details on the following URL:
http://mirror.centos.org/centos/4/centosplus/Readme.txt
This section was especially helpful:
php-5.x.x-x.centos4
This is php-5 for CentOS-4. It replaces the php-4.3.9 that is currently in CentOS-4. In order to upgrade a current php-4 install, you must remove php-domxml first and then do:
yum --enablerepo=centosplus upgrade php*
or to do and install, use this command:
yum --enablerepo=centosplus --exclude=php-domxml install php*
(or install individually the files that you need) _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos