LAMP ( Linux, Apache, MySql, Php ) Server on Ubuntu 8.04

3 08 2008

In a post, a few days ago, i described how i had to restore and reinstall my system.
Meaning daily, i’ve been finding some of the software i need and reinstalling it.

So here i found myself needing to make use of a Lamp server on my laptop.
There’s literally thousands of guides about how to achieve this. Fact is that, on Ubuntu 8.04 (Hardy Heron ), it can be reduced to a few easy steps, and all the trick is done.

Once more, for the sake of clarity, and to spare some time:

Install mysql
sudo apt-get install mysql-server-5.0

Install Apache2
sudo apt-get install apache2

Install php and the apache module for it
sudo apt-get install php5 libapache2-mod-php5

Reboot apache (very important)
sudo /etc/init.d/apache2 restart

PhpMyAdmin, if you need it
sudo apt-get install phpmyadmin

That’s all folks!