Category Archives: php

Install LAMP(Apache, Mysql, php) and PhpMyAdmin on Ubuntu 12.04

Most people doing software development on linux and they need to install the LAMP on there machines so these are the steps to achieve above task.

1. First you have to install the “tasksel” on Ubuntu. so go to terminal and follow the command.

sudo apt-get install tasksel

2. Then run the tasksel.

sudo tasksel

3. Select the LAMP server and Install.
4. Now you need to verify the php whether its working properly. so you can open the following file on terminal

sudo vi /var/www/info.php

Then past the following command on it and save


5. Now restart the server

 sudo /etc/init.d/apache2 restart

6. Now go to browser and visit the http://localhost/info.php page

7. Now you have completely setup the LAMP server but you don’t have nice management console to access the MySql Database. So that is why we need to install phpMyAdmin console.

8. Follow the steps to install phpMyAdmin

 sudo apt-get install phpmyadmin



9. Once the setup is completed you can go to the management console


10. Don’t worry if you got Page Not found so then you have to do the extra step to set up phpmyadmin under Apache manually.

Open the file

 sudo gedit /etc/apache2/apache2.conf

Copy past the following line in the bottom of the apache2.conf file

 Include /etc/phpmyadmin/apache.conf

Now restart the server as follows and go to management console

sudo /etc/init.d/apache2 restart

Posted by on October 7, 2013 in mysql, php


Tags: , , ,

%d bloggers like this: