LAMP stands for Linux,Apache,MySql,Php Installing a lamp server is done in 3 very easy steps: installing/testing Apache, PHP and finally MySQL.
1. Lets start with Apache:
1. Open the terminal from Applications > Accessories > Terminal
2. Install apache2 using apt-get by typing the following
sudo apt-get install apache2
Now everything should be downloaded and installed automatically.
To start/stop apache2 write:
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop
Your www folder should be in: /var/www/
If everything is OK you should see an ordinary HTML page when you type: http://localhost in your firefox browser
So that’s apache, lets move on to php
2. Install php
again in the terminal type:
sudo apt-get install php5 libapache2-mod-php5
that’s it for the php part, lets go to the final step and install MySql
3.Install MySql:
1. in terminal again, type the following:
sudo apt-get install mysql-server
2. (optional) If you are running a server you should probably bind your address by editing bind-address in /etc/mysql/my.cnf and replacing its value (127.0.0.1) by your IP address
3. set your root password (although mysql should ask you about that when installing)
mysql> SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(’xxxxxx’);
As last step install PHPMyAdmin for a graphical user interface of MySQL by executing
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
5. restart apache for the last time
sudo /etc/init.d/apache2 restart
Well done n00b! Ur LAMP server is running
Now that u mastered this why not move on and install Drupal on your machine?