Saturday, March 26, 2011

Install LAMP on Ubuntu


To install it, type and run the following commands one by one in the terminal:
sudo apt-get install apache2
sudo apt-get installphp5 libapache2-mod-php5
sudo apt-get install mysql-server mysql-server
My SQL root password





You'll then be prompted to enter a MySQL application password for phpmyadmin. You can hit <Enter> and a random password will be generated. I chose to use the same password that I used for the root MySQL password.
My SQL Application Password
If you enter your own password, a password confirmation screen will come up. Confirm your password.
Confirmation Password


sudo apt-get install phpmyadmin
phpMyadmin setup
This is important! Use the space bar on your keyboard to select apache2. Make sure there's a * next to apache2 like the picture below and then hit <Enter>.  (Click the picture to enlarge it and see what I'm talking about.)
phpMyadmin setup:select apache2
The next screen will explain some information about database configuration. Hit the <Enter> key to move on.
phpMyadmin Database config
Another screen will come up asking if you want to configure a new database called dbconfig-common.  Since this is a fresh installation, use the <Tab> key to select Yes and hit <Enter>.
phpMyadmin dbconfig-common

sudo apt-get install libapache2-mod-auth-mysql php5-mysql
sudo /etc/init.d/apache2 restart
Note: We will be promoted to enter the password for mysql,phpmyadmin etc.It will look as if installation is going on with blue blink. But don’t get confuse. It is the space where you have to write the password. Press the Tab key to navigate from one button to another like to choose ok or cancel button, press the tab key for choosing it.

No comments:

Post a Comment