Fedora Core - upgrading to PHP5 from an RPM

Associate
Joined
19 Jun 2003
Posts
1,680
Location
West Yorks, UK
Hi all,
I run a Fedora Core 3 dedicated server, rented from Fasthosts. As it's FC3, PHP is only on 4.3 and I need to move to 5.2. I've downloaded a PHP 5.2.3 RPM from RPMFind.net, and tried to install it, but am getting the following errors:
Code:
rpm -Uvh php-5.2.3-2.i386.rpm
error: Failed dependencies:
        httpd-mmn = 20051115 is needed by php-5.2.3-2.i386
        libc.so.6(GLIBC_2.4) is needed by php-5.2.3-2.i386
        libcrypto.so.6 is needed by php-5.2.3-2.i386
        libcurl.so.4 is needed by php-5.2.3-2.i386
        libssl.so.6 is needed by php-5.2.3-2.i386
        php-cli = 5.2.3-2 is needed by php-5.2.3-2.i386
        php-common = 5.2.3-2 is needed by php-5.2.3-2.i386
        rtld(GNU_HASH) is needed by php-5.2.3-2.i386
        php = 4.3.11-2.8 is needed by (installed) php-ldap-4.3.11-2.8.i386
        php = 4.3.11-2.8 is needed by (installed) php-mysql-4.3.11-2.8.i386
        php = 4.3.11-2.8 is needed by (installed) php-pear-4.3.11-2.8.i386
        php = 4.3.11-2.8 is needed by (installed) php-gd-4.3.11-2.8.i386
        php = 4.3.11-2.8 is needed by (installed) php-devel-4.3.11-2.8.i386
As i'm more of a Ubuntu person, i'm not quite sure what this is telling me. Is it saying that the things at the end of the list depend on the PHP version that is installed (ie. the version of php-pear i have requires the version of PHP i have)? How can I get around these errors? Is it a case of just find the RPM for each and updating them one by one (but will i keep encountering the same errors!)?

Cheers,
Matt
 
feenster99 said:
Hi all,
I run a Fedora Core 3 dedicated server, rented from Fasthosts. As it's FC3, PHP is only on 4.3 and I need to move to 5.2. I've downloaded a PHP 5.2.3 RPM from RPMFind.net, and tried to install it, but am getting the following errors:
Code:
rpm -Uvh php-5.2.3-2.i386.rpm
error: Failed dependencies:
        httpd-mmn = 20051115 is needed by php-5.2.3-2.i386
        libc.so.6(GLIBC_2.4) is needed by php-5.2.3-2.i386
        libcrypto.so.6 is needed by php-5.2.3-2.i386
        libcurl.so.4 is needed by php-5.2.3-2.i386
        libssl.so.6 is needed by php-5.2.3-2.i386
        php-cli = 5.2.3-2 is needed by php-5.2.3-2.i386
        php-common = 5.2.3-2 is needed by php-5.2.3-2.i386
        rtld(GNU_HASH) is needed by php-5.2.3-2.i386
        php = 4.3.11-2.8 is needed by (installed) php-ldap-4.3.11-2.8.i386
        php = 4.3.11-2.8 is needed by (installed) php-mysql-4.3.11-2.8.i386
        php = 4.3.11-2.8 is needed by (installed) php-pear-4.3.11-2.8.i386
        php = 4.3.11-2.8 is needed by (installed) php-gd-4.3.11-2.8.i386
        php = 4.3.11-2.8 is needed by (installed) php-devel-4.3.11-2.8.i386
As i'm more of a Ubuntu person, i'm not quite sure what this is telling me. Is it saying that the things at the end of the list depend on the PHP version that is installed (ie. the version of php-pear i have requires the version of PHP i have)? How can I get around these errors? Is it a case of just find the RPM for each and updating them one by one (but will i keep encountering the same errors!)?

Cheers,
Matt
Yes, you've got it. Just start by upgrading those apps that are reliant upon v4.3 of PHP. You shouldn't have any problems
 
Yup, but tbh you're running into dependancy hell.
Trouble is that to upgrade each of those apps (The dependancies of the base PHP package) in turn, you're going to need to upgrade the apps which they depend on and so on......

TBH, you're probably better off upgrading to FC5 if you really need to run PHP5 & don't want to/ can't manually build and install it.

These are the dependancies you should really be worrying about-
httpd-mmn = 20051115 is needed by php-5.2.3-2.i386
libc.so.6(GLIBC_2.4) is needed by php-5.2.3-2.i386
libcrypto.so.6 is needed by php-5.2.3-2.i386
libcurl.so.4 is needed by php-5.2.3-2.i386
libssl.so.6 is needed by php-5.2.3-2.i386
All of these are pretty major system wide libraries, and upgrading them induvidually is almost certainly going to cause a major headache.

Edit:This page may be something of what you're looking for, but I'd still personally avoid if at all possible :) http://www.whoopis.com/howtos/php5-mysql4-FC3-rpm.html

-Leezer-
 
Last edited:
Trouble is, Fasthosts release custom versions of the O/S for use on their servers. From then on, the released packages have to go through their testing etc too. Whilst this is a good point, it makes it rather difficult to do things like this, as the package names are always named differently to the standard ones (they add "xxx_matrix" to most of them).

Is it possible to upgrade to FC5 from FC3 directly without a re-install, or is that really asking for trouble?

Matt
 
Could you contact them directly and ask for advice on how to upgrade to PHP 5+? They must have a directive for that kind of query.
 
Well, there is a button that will upgrade to PHP 5.0.4 (retro!). I've considered clicking it, but it's non-reversible, so i was trying to make sure everything worked and could be switched back if something went funny (I was aiming to keep libphp4.so available to be switched back in).

However, it doesn't look like that will be possible. Therefore, i'm giong to download all the websites from our server, and try them out in a PHP5 virtual machine to make sure they work.

Even so, what is the best way for me make a complete backup of our server, that could be restored from? (bearing in mind, the server is entirely remote, and has a second hard drive for storing backups on).

Matt
 
Back
Top Bottom