RSS

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

07 Oct

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.
lamp
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

<?php
 phpinfo();
?>

5. Now restart the server

 sudo /etc/init.d/apache2 restart

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

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

apache

passmyadmin

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

mysqlAdmin

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
About these ads
 
1 Comment

Posted by on October 7, 2013 in mysql, php

 

Tags: , , ,

One response to “Install LAMP(Apache, Mysql, php) and PhpMyAdmin on Ubuntu 12.04

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: