LAMP is acronym for Linux (operating system), Apache HTTP Server, MySQL (database software), and PHP, Perl or Python.
Its bit hard task to install right combination versions of all software’s, so would suggest to install LAMP with tasksel which will take care of version compatibility all required software’s.
To install LAMP run following commands with sudo or as root user:
$ apt-get install tasksel $ tasksel install lamp-server
While installing with above command in between it asks for mysql root password.
After completing installation add following test in /var/www/info.php file.
<?php phpinfo(); ?>
To test open url http://hostname/info.php which will show all dependent module details.