How To Install Lamp Server on Linux (Apache2 / Mysql / PHP5) with One command?

* sudo apt-get update
* sudo apt-get install tasksel
* sudo tasksel
* Select Lamp Server and Click on Yes
* Enter Mysql Server Password 
 * Finish.

Select the Lamp Server and continue the installation.
 It will be asking the mysql password for root just keep it blank or you can provide the password for your DataBase Security.
after installation of tasksel you have to restart the service.

* sudo service apache2 restart
* sudo service mysql restart

your apache2 web server successfully installed.

Comments