Cómo instalar apache2 + mysql + php

sudo aptitude update
sudo aptitude upgrade
sudo aptitude install mysql-server
sudo /usr/bin/mysqladmin -u root password pon_tu_pass
sudo aptitude install apache2
sudo aptitude install php5
sudo aptitude install libapache2-mod-auth-mysql
sudo aptitude install php5-mysql
sudo /etc/init.d/apache2 restart
sudo gedit /var/www/test.php