Installing LAMP on Ubuntu | openGLUG

Pages

Thursday 28 March 2013

Installing LAMP on Ubuntu




 LAMP Stands for Linux Apache MySQL and PHP ( Sometimes Perl or Python also)
 LAMP is a package consisting of a elemental components of a general purpose web server.

Installation of LAMP is splitted up into four steps.

Step 1. Installation of Apache HTTP Server 2:
  To install Apache 2 on your system, Open terminal. Then enter the following command.                 
                                                
                                                  'sudo apt-get install apache2'   
                                       
 You have to enter the admin password to install any softwares. So enter your admin password and complete the installation.
To test your apache installation, open any browser of your choice and navigate to 'http://localhost/' or '127.0.0.1' 

Step 2. Installation of PHP 5:
  To install PHP5 on your Ubuntu system, open terminal and enter the following command.

                                    'sudo apt-get install php5 libapache2-mod-php5'
This command will install PHP5 in your system along with the required libraries to work with Apache2.
To activate PHP5 you have to restart the Apache server. To do so, execute the following terminal command.
                   
                   'sudo /etc/init.d/apache2 restart'

Step 3. Installation of MySQL:

 Again, to install MySQL open terminal and run the command given 

                  'sudo apt-get install mysql-server' 

 After finishing all the 3 steps explained above, you have LAMP system on your computer.

MySQL we installed is a console based DataBase Management System which is little difficult to handle. So we need a light weight, easy-to-use utility to do all our DBM(Database Management) jobs. Most commonly used and the recommended one is the phpMyAdmin.

Installation of phpMyAdmin is very easy. All that you need to do is, just execute the command given below via terminal.

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

No comments:

Post a Comment