how setup and test LAMP on ubuntu

####To install the default LAMP stack in Ubuntu 10.04 and above

First install tasksel…

$ sudo apt-get install tasksel

… and then the LAMP stack:

$ sudo tasksel install lamp-server

####Test the installation
The webapp folder is located /var/www

$sudo vi /var/www/info.php

create:

restart apache2 ,

sudo /etc/init.d/apache2 restart

Open browser: http://localhost/info.php

####log
/var/log/apache2 logs

####install phpMyAdmin
sudo apt-get install phpmyadmin

test it out:
http://localhost/phpmyadmin

Add a Comment