Install Apache MySQL PHP phpmyadmin (LAMP) on Ubuntu 11.04 | UbuntuCafe

Install Apache MySQL PHP phpmyadmin (LAMP) on Ubuntu 11.04

Installing Apache mySQL, PHP and phpmyadmin on Ubuntu 11.04 Natty Narwhal is quite easy.

You can start by installing Apache2, php, mySQL by using following command in Terminal. 

" sudo apt-get install lamp-server^ "


After this you would just need to install some additional php libraries and phpmyadmin During the install you would be prompted for  for the MySQl “root”  password. Repeat it for a second time then it will create a MySQL server and client.

Now type " http://localhost " or  "http://192.168.10.100" in your browser and it will show a message that "It Works ! ".




Now needs to install the phpmyadmin.
open terminal and type

"sudo apt-get install phpmyadmin "

It would ask if you want to configure it automatically for apache or lightppd. choose apache by pressing spacebar(make sure that the * shows in front of it,) and press Ok. It would be automatically configured,

It would also ask for configuring database, choose yet and on next screen you would be asked to enter the MySQL root password, next it would ask you to enter a password to be used by phpmyadmin to register with the database. You can even choose to assign another password for it.then it will finish your installation.you can acces your mysql database by typing,

" http://localhost/phpmyadmin/ "







if it does not redirect to that page you must restart apache by typing in terminal

" sudo /etc/init.d/apache2 restart

it will restart apache server.
Now LAMP is succesfully installed and configured on your system.

Post a Comment