How to upgrade PHP on Fedora 6 Core (actually most of the distros)
If you need to upgrade PHP on your current Linux box here are some instruction: (this is a result of my frustrating night trying to upgrade)
Download the latest RPM here. Search by name and you should find something like php-5.2.3-2.fc6.remi.x86_64.rpm. Pay attention to the distro the RPM is build for.
Once you have your RPM, install it.
rpm -ivh php-5.2.3-2.fc6.remi.x86_64.rpm
If it says that you are missing some dependencies, download those, install them (with rpm -ivh), and try again.
Some dependencies might error out saying that some files are conflicting. If this occurs you can remove the already installed dependency. To do so use something like this:
rpm -e php-common-5.1.6
Also, you can use RPM to install addons such as GD libraries or MySQL.
I believe thats it. It is much simpler than expected. I can say that now, after I spent hours trying to make it work with source code.
2 responses so far



Hi I’m trying to upgrade tp php 5.3
I downloaded the rpm and needed 2 dependencies. I downloaded the dependency:
php-common-5.3.0-1.fc6.remi.i386.rpm
When I tried to install it conflicted with php-common-5.1.6-3.7.fc6 so I tried to remove it but I’m getting an error which I’m not sure what to do about. Do you have any tips here?
[root@linux benino]# rpm -e php-common-5.1.6-3.7.fc6
error: Failed dependencies:
php-api = 20041225 is needed by (installed) php-mcrypt-5.1.6-4.fc6.i386
php-common = 5.1.6-3.7.fc6 is needed by (installed) php-pdo-5.1.6-3.7.fc6.i386
php-common = 5.1.6-3.7.fc6 is needed by (installed) php-cli-5.1.6-3.7.fc6.i386
php-common = 5.1.6-3.7.fc6 is needed by (installed) php-5.1.6-3.7.fc6.i386
php-common = 5.1.6-3.7.fc6 is needed by (installed) php-mysql-5.1.6-3.7.fc6.i386
php-common = 5.1.6-3.7.fc6 is needed by (installed) php-xmlrpc-5.1.6-3.7.fc6.i386
php-common = 5.1.6-3.7.fc6 is needed by (installed) php-xml-5.1.6-3.7.fc6.i386
php-common = 5.1.6-3.7.fc6 is needed by (installed) php-gd-5.1.6-3.7.fc6.i386
Sorry for the noob question. I figured it out. I had to download the appropriate version of php-mcrypt, php-pdo,php-cli… etc.
Some more dependencies came up and I downloaded those. The upgrade worked. Thanks for the info you posted above. It helped.