ubuntu apache mysql php

WWW
apt-get install apache2
apt-get install php5 libapache2-mod-php5
apt-get install mysql-server

доп.
apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl phpmyadmin

mysqladmin -u root password new-password
htt://ru.wikipedia.org/wiki/LAMP