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
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

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


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.


Wow ! you have someting to tell us. That's great! Please keep in mind that comments are moderated, we employ rel="nofollow" for links, avoid using a spammy word or a domain in name field, it might end up as a Spam. Thanks for reading.

Last 5 Articles

All Articles >

  1. Server Side Render ReactJS Application

  2. How to Deploy React JS application

  3. Environment Variables in React JS

  4. Multiple Serialisers in Django ModelViewSet

  5. Security Myths


News Letter

Subscribe to our email newsletter for useful tips and valuable resources, sent out every new article release.