[CentOS] PHP version dilemma

Todd Cary todd at aristesoftware.com
Fri Oct 5 13:45:26 EDT 2012


On 10/5/2012 10:10 AM, Luigi Rosa wrote:
> -----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-----
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
>
Luigi -

I assume that after saving the php.ini I would

yum remove php

yum install php53

However, I am not sure what you mean by

and then install the php53 packages you previously had

I have been running PHP as it came with Centos 5.

Another question has to do with the GD library.  How can I tell 
if it is installed *or* is it automatically part of php35?

Oh yes...if there is a problem with php35, are there any problems 
in reinstalling php 5.1?

Many thanks

-- 
Ariste Software
Bend, OR 97702

http://www.aristesoftware.com




More information about the CentOS mailing list