Install Tasksel
tasksel package is available under default repositories on most of Ubuntu, Debian and LinuxMint operating systems. Use the following command to install it.$ sudo apt-get install tasksel
Install LAMP using Tasksel
After installing tasksel, let’s install LAMP setup on your Ubuntu or LinuxMint system. Execute tasksel command in terminal with sudo access.$ sudo taskselNow select the LAMP server when installer will prompt like below and press OK.

During installation of MySQL Server by tasksel, It will prompt for MySQL root account password twice. Please input password.


and your setup will be completed within few minutes.
Test LAMP Stack
Congratulation’s your LAMP setup has completed. To verify open your web browser and access localhost. You will get screen like below. It showing that Apache is working fine.
Now create a phpinfo file /var/www/html/phpinfo.php using following code.
<?php phpinfo(); ?>and access this file in browser, You will get something like below screen.

Note: This article has been tested with Ubuntu 14.04.2 operating system.
Comments
Post a Comment