LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.
Configuring LAMP server in your local Ubuntu machine is much helpful if you are web developer, own a PHP, MYSQL based website such as WordPress. You can develop or alter a website in local server and test it’s functionality before using a live server.
Open terminal (Ctrl+Alt+T) or using dash and use below command.
sudo apt-get install tasksel
Now, use the below command to install LAMP
During installation, you will be prompted with the root password for MySQL.
sudo gedit /var/www/info.php
and type below PHP statements
<? phpinfo(); ?>
The installed LAMP server can be accessed using the link http://localhost and the created PHP page as http://localhost/test.php