Sunday, June 2, 2013

Setup LAMP server on Ubuntu

Install Apache2 server


sudo apt-get install apache2




Install PHP

sudo apt-get install php5 libapache2-mod-hp5
Install MySQL

sudo apt-get install mysql-server


Install PHPMyAdmin
sudo apt-get install phpmyadmin
And select apache2 as shown in image below,

It'll ask for phpmyadmin configuration and press "NO".



Then type below commands:
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d
sudo /etc/init.d/apache2 restart
Now, open your browser,




uninstall phpmyadmin:

sudo apt-get remove --purge phpmyadmin