Debian System Administration - Installation
apt-get update
apt-get upgrade
Useful software to install
apt-get install vim
apt-get install htop
apt-get install iftop
apt-get install tree
apt-get install screen
apt-get install git
Can be launch in 1-line
apt-get install vim htop iftop tree screen git
Edit the sources.list file
vim /etc/apt/sources.list
Add this on the end of file (for Debian Squeeze)
## Dotdeb repositories
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
Get the dotdeb key and get started to envoy Dotdeb's repositories
cd /tmp
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | apt-key add -
apt-get update
If you need more information, take a look here
apt-get install nginx
apt-get install apache2
Install Web Servers + PHP5
apt-get install nginx php5-common php5-curl php5-fpm php5-gd php5-imap php5-mcrypt php5-mysql php5-suhosin
Apache2 + PHP5 (mod_php5)
apt-get install apache2 libapache2-mod-php5 php5-common php5-curl php5-gd php5-imap php5-mcrypt php5-mysql php5-suhosin
apt-get install php-apc
or
apt-get install php5-dev php-pear
pecl install apc
apt-get install mysql-server