[CentOS] PHP version dilemma

Luigi Rosa lists at luigirosa.com
Fri Oct 5 13:10:09 EDT 2012


-----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-----


More information about the CentOS mailing list