Configure LAMP Server

In this tutorial we will show you how to Configure LAMP server.
Choose linux

To start installing LAMP server you need to install tasksel.Tasksel is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated “task” onto your system. To install tasksel type the following in a terminal.

Install lamp
                sudo apt-get install tasksel
                

WARNING: Use tasksel only to install tasks, never to remove any! According to https://launchpad.net/bugs/574287 it will remove each package in the list of that task (and possibly render your system unusable).

You need not install tasksel in server editions and some distributors too since they come with tasksel already installed, if your Linux has it already them the install command would not do anything else that update it if it is an out dated version.

Install lamp

After installing tasksel type

tasksel
Install lamp

in terminal and the tasksel opens up then navigate down and tick the check box for lamp server .

Install lamp

Then click ok then installation begins

After completing the installation you will be prompted for a password for mysql root user. You can enter any password.

Install lamp

After installation is complete type this to restart the server.

                

sudo services apache2 restart

Install lamp

Then open a browser and type in the url

 http://localhost 

Install lamp

If the following page appears then you are good to go.

To test your php server configuration open terminal and type sudo gedit
Then type this

 

                

Then save it in the

root/ var/ www

As phptest.php or any name
Then open a browser and type

http://localhost/phptest.php

Or any name that you have given

Install lamp

If the pages displays like this then you are good to test your pages in your machine.