It's only one commond : sudo apt-get install apache2 mysql-server mysql-client php5 php5-gd php5-mysql