Click to See Complete Forum and Search --> : Installing php5 on FC1


Sarthan
02-20-2006, 04:12 PM
Hello,

I want to upgrade php version 4 to php version 5 on a Fedora Core 1 box.

The current installation of php version 4 is done through rpm's that come with the Fedora Core 1 installation.

When I look for updated rpm's in the Fedora Core 1 directory I can't seem to find a php version 5 rpm to fit my needs. Why aren't there any php5 packages for FC1?

So I head over to rpmfind.net and search for php versions.
Here I find this rpm :

Fedora Core Development for i386 php-5.1.2-4.3.i386.rpm

But when I try to install this rpm I get a whole list of failed dependencies:

error: Failed dependencies:
httpd-mmn = 20051115 is needed by php-5.1.2-4.3
libc.so.6(GLIBC_2.3.4) is needed by php-5.1.2-4.3
libc.so.6(GLIBC_2.4) is needed by php-5.1.2-4.3
libcrypto.so.6 is needed by php-5.1.2-4.3
libcurl.so.3 is needed by php-5.1.2-4.3
libdb-4.3.so is needed by php-5.1.2-4.3
libidn.so.11 is needed by php-5.1.2-4.3
libkrb5support.so.0 is needed by php-5.1.2-4.3
libssl.so.6 is needed by php-5.1.2-4.3
php-pear is needed by php-5.1.2-4.3

I wonder if it is possible at all to fix these dependencies without breaking stuff on the box.

Will I have the same problem with dependencies when I compile php 5 from the source package? And how can I possibly install the source package without knowing what --prefix and other flags I should enable/disable to make the installation fit to the fedora core 1 system?

At this moment I'm so dissapointed in the whole rpm formula of linux systems.
It seems like to only way to keep up with new software through rpm's is upgrading the whole operating system everytime there's a new release of the distribution. And upgrading on every new release isn't an option when you have servers that are suppossed to be running 24/24.

Any toughts on how I could accomplish my goal?

deathadder
02-20-2006, 05:28 PM
Is there any particular reason your not using the lastest Fedora, 4? You could grade the iso's from Red Hat and then go from there. Apart from that try using yum (?) and upgrade with that.

[EDIT]
I'm tired and didn't read that last bit, I'd go with yum or apt-get for rpm and upgrade like that, either that or use a non RPM based distro for a server. Debian has apt-get and Gentoo has emerge...

http://www.brandonhutchinson.com/Upgrading_Red_Hat_Linux_with_yum.html

Sarthan
02-20-2006, 06:20 PM
My main reasons for not upgrading are that the servers are stored in a co-location datacenter which I rarely to never visit, I'm also a bit feared of breaking something when I should perform an upgrade.

[edit]

After reading about upgrading I'm now thinking that upgrading or reinstalling to the latest Fedora Core version with an all-included backup of the current system at hand might be a safe solution to perform.

Thanks for the advice.

deathadder
02-21-2006, 04:18 AM
No problem, hope it goes smoothly.