[CentOS] best way to upgrade php4 -> php5 on CentOS?
devin.lists at gmail.com
Tue Jul 3 18:52:32 UTC 2007
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.
On 7/3/07, Rogelio Bastardo <scubacuda at 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:
> This section was especially helpful:
> 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 at centos.org
More information about the CentOS