Referenced From Here

http://strdoc.com/ubuntu-apache-php-mysql-server-810-intrepid#comments

  1. Optionally, install SSH Client and Server (for remote access to this server)

sudo apt-get install ssh

Install Database Server
sudo apt-get install mysql-server
Install Apache2 web server
sudo apt-get install apache2
Install PHP5
sudo apt-get install php5 libapache2-mod-php5 php5-cli
Install PHP5-MySQL support
sudo apt-get install php5-mysql
Restart Apache
sudo /etc/init.d/apache2 restart
Optionally, install phpMyAdmin
sudo apt-get install phpmyadmin

further reference:
http://www.mysql-apache-php.com/

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License