Upgrade PHP5 & MySQL 5 to latest on Debian

Sometimes the packages on your desired apt-get mirror aren’t kept up to date.
A friend recently showed me how to upgrade to the latest and securist version using a special apt-get mirror service that specializes in LAMP installations.

We will be using a service called dotdeb to update PHP5 and MySQL5. It is an unoffical Debian respository containing many packages for the Debian (Sarge) stable release but specifically packages “to turn your Debian GNU/Linux boxes into powerful, stable and up-to-date LAMP servers.”

Its really simple to use and active.

First:

nano /etc/apt/sources.list

Then, scroll to the bottom of the file and add:

deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all

Then, save and exit the file and run:

apt-get update && apt-get upgrade

This should upgrade your MySQL 4.1 or 5 installation and upgrade and harden your PHP 4 or 5 installation. You can also browse the repository and find a closer mirror at Dotdeb if you wish to do so.

Hope this helps keep your LAMP installation up to date, it worked for me.

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)