LAMP(Linux, Apache, MySQL, PHP or Perl) is one of the most essential servers needed by the web developers or web entrepreneurs around the globe. This tutorial explains one of the easiest ways to install LAMP on Ubuntu. Because Ubuntu uses Linux as it’s kernel we are done with the Linux part ;) .
Install tasksel on your system:
$ sudo apt-get update && sudo apt-get install taskselTasksel is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated “task” onto your system. Start tasksel:
$ sudo taskselselect the lamp-server and press ‘Ok’. Follow the steps as directed and create your Mysql password.</br> Lastly,start apache2 server:
$ sudo service apache2 restartCongratulations you have successfully installed LAMP server on your system. To test just visit your web browser and type in the following url:
To test the php installation:
$ sudo nano /var/www/phptest.phptype in and save:
<?php phpinfo(); ?>and open the following url in your browser: