Jul 25, 2012, by admin
LAMP is short for Linux, Apache, MySQL and PHP. A LAMP setup is a common web server setup as it incorporates the stability of Linux, the power of Apache and the benefits of MySQL and PHP.
The below steps are given for Ubuntu and Debian derivatives, which use the APT package management tool. For other distros, the package management command will be different (e.g. yum, emerge, pacman), and the names of the packages downloaded may or may not be different.
Establish a connection to the internet.
Ensure you have the Advanced Packaging Tool (apt-get).
Open your Terminal application.
Type into the Terminal:
sudo apt-get install apache2
Enter your password when prompted.
Remain in your terminal application.
Type into the Terminal:
sudo apt-get install php5 libapache2-mod-php5
Restart Apache:
sudo /etc/init.d/apache2 restart
Enter your password if prompted.
Open the Terminal if you have closed it.
Type in the following command:
sudo apt-get install mysql-server
Enter a password if prompted.