Install LAMP (Linux, Apache, MySQL, PHP) on Linux Ubuntu

Installing LAMP 12.04 on Ubuntu is better to prepare the right environment and all tools that you need. These are very important fundamentals that your computer never wants to miss such as PHP, MySQL, and Linux Apache. The installation of PhpMyAdmin will help you to complete the work. We can install each package manually. Let us see how to install the Lamp on Ubuntu 12.04.

Install LAMP (Linux, Apache, MySQL, PHP) on Linux Ubuntu

Step by Step Instructions to Install Lamp on Ubuntu 12.04

First of all, open the terminal and type:

sudo apt-get install tasksel

From a terminal type complete the installation:

sudo tasksel

Scroll the options until seeing the item Lamp server

Press the space bar while checking the box.

Press the tab to ok

Press enter key to confirm and start LAMP installing

Enter the password during installation for MySQL and continue it. Make sure the Apache functions at the end of installation.

Then restart the process

sudo / etc/init.d/apache2 restart

 

Open your browser and type:

Localhost

Or:

127.0.0.1

We can think that done well when the word ‘It Works’ comes. For verifying the PHP is installed correctly or not, type in the terminal:

sudo gedit / var / www / prova.php

And paste into the file:

sudo gedit / var / www / prova.php

Then retype it from your browser:

localhost / prova.php

If you don’t get any error message then it means all went smoothly. To install phpMyAdmin:

Open the terminal and type:

sudo apt-get install phpmyadmin

Verify the function type from phpMyAdmin browser at the end of installation:

http://localhost/phpmyadmin

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current ye@r *