I am running Centos 5.8; at least uname -rmi gives me centos-release-5-8.el5.centos A CMS package is telling me that I need PHP 5.2x, however yum update says that I am fully up to date. Is there a "safe" way to upgrade PHP to 5.2x? Todd -- Ariste Software Bend, OR 97702 http://www.aristesoftware.com
On Fri, Oct 5, 2012 at 12:57 PM, Todd Cary <todd at aristesoftware.com> wrote:> I am running Centos 5.8; at least > uname -rmi > gives me centos-release-5-8.el5.centos > > A CMS package is telling me that I need PHP 5.2x, however yum > update says that I am fully up to date. > > Is there a "safe" way to upgrade PHP to 5.2x? > > ToddTake a look at the IUS package repo: http://iuscommunity.org/pages/About.html It's the one most people use to get PHP updates. Stay away from the official "php53" packages distributed with CentOS, as they don't integrate well with many packages looking for php (it does not "provide" the "php" capability) ? Brian Mathis
Am 05.10.2012 um 18:57 schrieb Todd Cary:> I am running Centos 5.8; at least > > uname -rmi > > gives me centos-release-5-8.el5.centos > > A CMS package is telling me that I need PHP 5.2x, however yum > update says that I am fully up to date. > > Is there a "safe" way to upgrade PHP to 5.2x?yum remove php yum install php53 -- LF
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Todd Cary said the following on 05/10/12 18:57:> Is there a "safe" way to upgrade PHP to 5.2x?rpm -q --all | grep php save the list of php packages stop httpd save /etc/php.ini, even if is renamed by rpm, but better have another copy, just in case remove all php packages yum install php53 and then install the php53 packages you previously had apply the customizations of /etc/php.ini including the correct timezone (some php applications may complain if it is not set) start httpd I did this on 20+ servers when php53 was available. No problem at all. Ciao, luigi - -- / +--[Luigi Rosa]-- \ The basic questions of design, material and shielding, in combining a nuclear reactor with a home boiler and cooling unit, no longer are problems... The system would heat and cool a home, provide unlimited household hot water, and melt the snow from sidewalks and driveways. All that could be done for six years on a single charge of fissionable material costing about $300. --Robert Ferry, U.S. Institute of Boiler and Radiator Manufacturers, 1955 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBvFG0ACgkQ3kWu7Tfl6ZRWMACghtIfr16tKo8+xs6IzOyiuciS LK0AoIq4mdpoiH4Wdi3AwPiEKEHGgDz7 =N9Tv -----END PGP SIGNATURE-----
Am 05.10.2012 um 18:57 schrieb Todd Cary <todd at aristesoftware.com>:> I am running Centos 5.8; at least > > uname -rmi > > gives me centos-release-5-8.el5.centos > > A CMS package is telling me that I need PHP 5.2x, however yum > update says that I am fully up to date. > > Is there a "safe" way to upgrade PHP to 5.2x? >Has RedHat ever shipped PHP 5.2? I thought, I had only seen 5.1 and then 5.3 - but I admit I don't use RedHat or CentOS for PHP if I can avoid it. The PHP project has stopped supporting PHP 5.2 some time ago and it's on "life support" by the backports-project: http://code.google.com/p/php52-backports/ E.g. it will drop out of FreeBSD's ports-tree sometime spring 2013. Some Debian release may keep it alive longer. Does you CMS absolutely need PHP 5.2 or does it also work with PHP 5.3?