Installing LAMP Server on Ubuntu 10.04

Open up the Terminal and execute this commands as ordered,
This command is used to install the LAMP Server.
sudo apt-get install lamp-server^
Enter the MySql password and enter it again.
Configure the Apache2 has the default server.
and say no to auto configuration of MySql.
open up a web browser and enter this address http://localhost/
For Open up an editor
sudo nano /var/www/testing.php
Copy and paste this code,
<?php phpinfo(); ?>
Restart Apache2 Server,
sudo /etc/init.d/apache2 restart
open up a web browser and enter this address http://localhost/testing.php
Check the local host IP,
cat /etc/hosts | grep localhost
cat /etc/mysql/my.cnf | grep bind-address
Install the PHPMyadmin
sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
open up a web browser and enter this address http://localhost/phpmyadmin
Its all done! Enjoy using LAMP.

Leave a comment