Install LAMP on Ubuntu 12.04 LTS

To install LAMP server on Ubuntu –

On terminal, do –

sudo apt-get install tasksel
sudo tasksel install lamp-server

Test Apache

Go to URL http://localhost/ in the browser. The message “It Works!” should be displayed.

Test PHP

sudo vi /var/www/testphp.php

Add the line :

<?php phpinfo(); ?>

Save and close the file

Got to the URL http://localhost/testphp.php in the browser. The php status page should be displayed.

Test MySql

Open MySQL monitor In the terminal with the following command –

mysql -u <username> -p

Provide the username ( and password when prompted) which you had set during the setup above.
The program should advance to display the “msql>” prompt.
Close mysql monitor by command exit.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

45,334 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>