All this comes from here:
https://help.ubuntu.com/community/ApacheMySQLPHP
In the teminal:
- $ sudo tasksel install lamp-server
- $ sudo apt-get install phpmyadmin
- $ sudo gedit /etc/apache2/apache2.conf
- Add the following to the end of this file: “Include /etc/phpmyadmin/apache.conf”
- Edit the /etc/php5/apache2/php.ini file and increase the memory_limit value. I used 64M, but that may be overkill.