Installing LAMP On Ubuntu


Install Apache

   Add the following apache package:

   # sudo apt-get install apache2

Test Apache:

   Using your favorite browser go to
      http://localhost/

Install PHP:

   Add the following PHP packages:

   # sudo apt-get install php5 libapache2-mod-php5

   Create a test php file:

   # vi /var/www/test.php 

      <?php phpinfo(); ?>


Test PHP:

   Using your favorite browser go to:

      http://localhost/test.php

Install MySQL:

   Add the following mysql package:

   # sudo apt-get install mysql-server

 Modify my.cnf

   Modify the my.cnf file and change the bind address to match you IP address:

   # vi /etc/mysql/my.cnf

       bind-address =10.10.10.10

Install phpMyAdmin:

   Install the following admin packages:

   # sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin


Test phpMyAdmin:

   Using your favorite browser go to:
      http://localhost/phpmyadmin