Configure LAMP Server
In this tutorial we will show you how to Configure LAMP server.
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.
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.
After installing tasksel type
in terminal and the tasksel opens up then navigate down and tick the check box for lamp server .
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.
After installation is complete type this to restart the server.
Then open a browser and type in the url
sudo services apache2 restart
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
If the pages displays like this then you are good to test your pages in your machine.