Avatar of jen_jen_jen
jen_jen_jen

asked on 

Upgrading to PHP 5.2.x on FC5?

I'd really like to upgrade my version of php.  I just want to make sure that the process outlined below is the correct way to do it on a server running FC5.

Step One:
-----------------------------------------------------------------------------------------------------------------------------
rpm -e php php-pear php-pdo php-gd php-mysql

Step Two:
-----------------------------------------------------------------------------------------------------------------------------
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-common-5.2.8-1.fc5.remi.i386.rpm
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-cli-5.2.6-1.fc5.remi.i386.rpm
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-5.2.6-1.fc5.remi.i386.rpm
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-pdo-5.2.8-1.fc5.remi.i386.rpm
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-mysql-5.2.8-1.fc5.remi.i386.rpm
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-pear-1.7.1-1.fc5.remi.noarch.rpm
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-pgsql-5.2.6-1.fc5.remi.i386.rpm
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-imap-5.2.6-1.fc5.remi.i386.rpm
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-mbstring-5.2.6-1.fc5.remi.i386.rpm
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-gd-5.2.6-1.fc5.remi.i386.rpm
rpm -ivh http://rpms.famillecollet.com/fc5.i386/php-xml-5.2.6-1.fc5.remi.i386.rpm

Step Three:
-----------------------------------------------------------------------------------------------------------------------------
apachectl graceful


Is there anything missing?  Will this work?  When I ran rpm -qa | grep php, it came back with this:

psa-php5-configurator-1.1.0-fc5.build81061129.23
php-pgsql-5.1.6-1.6
php-imap-5.1.6-1.6
php-pdo-5.1.6-1.6
php-gd-5.1.6-1.6
php-mbstring-5.1.6-1.6
php-xml-5.1.6-1.6
php-pear-1.4.9-1.2
php-5.1.6-1.6
php-mysql-5.1.6-1.6

PHPLinux Distributions

Avatar of undefined
Last Comment
jen_jen_jen
Avatar of amnonnes
amnonnes
Flag of Israel image

Basically all you need is just php and php-pear - all the rest are modules that are optional.
So yes, what you outlined here will work for sure.
Avatar of jen_jen_jen
jen_jen_jen

ASKER

I tried that first step, and got:

error: Failed dependencies:
      php is needed by (installed) psa-php5-configurator-1.1.0-fc5.build81061129.23.noarch
      php-imap is needed by (installed) psa-php5-configurator-1.1.0-fc5.build81061129.23.noarch
      php-gd is needed by (installed) psa-php5-configurator-1.1.0-fc5.build81061129.23.noarch
      php-mbstring is needed by (installed) psa-php5-configurator-1.1.0-fc5.build81061129.23.noarch
      php-xml is needed by (installed) psa-php5-configurator-1.1.0-fc5.build81061129.23.noarch
      php-mysql is needed by (installed) psa-php5-configurator-1.1.0-fc5.build81061129.23.noarch

I tried stopping apache, but got the same message?
ASKER CERTIFIED SOLUTION
Avatar of amnonnes
amnonnes
Flag of Israel image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of jen_jen_jen
jen_jen_jen

ASKER

Actually, I wound up using something from atomicrockturtle, and then was able to successfully upgrade.  Thanks for the help!
PHP
PHP

PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.

125K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo