Posts RSS Comments RSS

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.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Technorati

No responses yet

Leave a Reply