To create a home server or local server you will need to install apache2, php, mysql database and phpmyadmin. In this post we will install the local server with apache2, php and mysql components automatically with “tasksel”. So lets start
Installation of the LAMP Server via “tasksel”
Open terminal via Ctrl+Alt+T and first install “tasksel” with the following command.
sudo apt-get install tasksel
After installation of the “tasksel”, run
Above command will open all the options available in “tasksel”. Now select the options needed to install the server. So we will select only “lamp server” via pressing space bar. After selecting the “lampserver” hit “Enter”. It will start the retrieving of the files and installation of the server on the machine.
During the installation process “mysql root password” option will appear. So type the password for “root” user two times and hit “Enter”.
After complete installation open your browser and type “http://localhost” or just click the link below. All the above steps will install apache2, php and mysql in the system.