How to Add the Dotdeb Repository to Debian Squeeze

Dotdeb is a repository containing packages to turn your Debian boxes into powerful, stable and up-to-date LAMP servers
– Dotdeb About Page

The Dotdeb repo for Debian based Linux servers contains the latest stable versions of NGINX, PHP and MySQL. All three of these packages combined can provide us with a powerful yet light weight web server to host static and dynamic websites. The aim of this tutorial is to setup NGINX, PHP5-FPM and MySQL on a Rackspace Cloud Server to host a WordPress based website.

To add the Dotdeb repository to any Debian Squeeze server, edit the file

/etc/apt/sources.list

and add these two lines

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

at the bottom of the file. You will now need to fetch the GnuPG key for this repository. You can download the GnuPG key using wget and then add it to the server.

wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | sudo apt-key add -

Run

apt-get update

to complete the repository addition.

Source : Dotdeb Website. Please visit the Dotdeb website for instructions on setting up the repository for Debian Lenny servers and updates on all the available packages.