It’s really easy to get a LAMP webserver up and running, so I thought I’d post some nice easy instructions for installing on a Ubuntu box.
1) sudo apt-get install mysql-server mysql-client
-> you will need to choose a MySQL Root user password
2) sudo apt-get install apache2
-> confirm in your browser that you are able to view a page for your IP address. This could be localhost, or your local IP address.
3) sudo apt-get install php5 libapache2-mod-php5
-> you’re going to need to install PHP next as above.
4) /etc/init.d/apache2 restart
-> …and of course an Apache restart so that PHP is activated
5) sudo apt-get install phpmyadmin
-> you’re going to be asked which webserver to configure. go for apache2. it’ll then probably request your password you selected for MySQL.
6) vim /etc/apache2/apache2.conf
-> use your favorite editor to open up the apache config file
7) Include /etc/phpmyadmin/apache.conf
-> add the following somewhere in the file.
8) /etc/init.d/apache2 restart
9) http://yourhomepage.com/phpmyadmin
-> test 🙂