LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.
There are many methods to install lamp for example the standart one see our previous howto for ubuntu : Howto: Install Lamp and phpmyadmin on Ubuntu
So lets show you another way to install lamp under ubuntu 9.10 and above.
First ,under Terminal type the command :
you will get something like :
Now you have to shoose the LAMP line and SPACE key to select LAMP Server .
After, you will asked to insert root mysql password
After the procedure will start downloading and installing needed packages for LAMP
Of with this command :
sudo apt-get install php5 mysql-server apache2
Or with :
$ sudo tasksel install lamp-server
Now lets check of its working .
Check the apache2 from your browser :
Http:Ip or hostname
Now check if your Mysql is wokring with:
Check if php is working :
$sudo vi /var/www/info.php
save and exit
and browse again http://ip/info.php
Enjoy and feel free to ask