Saturday, March 10, 2012

Installing LAMP in Ubuntu

This tutorial is about installing lamp with a single command in ubuntu.For Newbie it is very helpful.LAMP actually stands for "Linux Apache Mysql PHP".This command will install apache,mysql and PHP and also automatically configure PHP on apache.Just Follow the Procedure Given

1.) Open terminal by pressing ctrl+alt+T or going to "Applications->Accessories->terminal".

2.) Write Command:sudo apt-get install tasksel.Enter your root password and package will be installed.

3.) Now to install LAMP Type:sudo tasksel and select LAMP Server

4.) During the installation you will be asked to insert the mysql root password

5.) After installation Type:localhost in your browser.If it shows following screen it means your apache is configured successfully.

6.)Now check if php is working, Type this in terminal :sudo gedit /var/www/test.php and add


7.) Save and exit. Restart Apache by writting following commnad: sudo /etc/init.d/apache2 restart

8.) Now open browser and type : localhost/test.php

PHP is installed

Note: /var/www is directory where your website files are kept it is same as wwwroot in Windows IIS

No comments:

Post a Comment

Thank you for your comment