One advantage of using LAMP is the substantial flexibility for different database, web server, and scripting languages.
Popular substitutes for MySQL include Posgresql and SQLite. Python, Perl, and Ruby are also frequently used instead of PHP.In Ubuntu installing LAMP is very easy and you just have to do some simple steps.LAMP is used my most of the web developer who are using Ubuntu.
So in this post i will tell you how to install LAMP server on Ubuntu 10.04/10.10/11.04.
Instructions
1.Install Apache Server 2
Open the Ubuntu Synaptic Package Manager and search for Apache2 and select for install.Now click on apply to start the installation process.Wait for some time to complete the process.For checking that whether Apache 2 is installed of not, Open the Browser and type – “http://localhost/” then you will see the following in your Browser.
2.Install PHP5
a) Open the Synaptic Package Manager and type PHP5 in the search box.Select it for installation and click on apply.This will starts the installation process.b) Open the Terminal and type the following to get Root access.
sudo nautilusThis will open a window, you just go to “File System>>vsr>>www” and create one document file(by right clicking and selecting Create Document) of any name like “fun.php” and type the following-
c) Run the following command in the Terminal to Restart the Apache Server
sudo /etc/init.d/apache2 restart
d) Now again open the Browser and type-
http://localhost/fun.phpyou will see the following in browser which shows that PHP is working.