PHP 02: Setting up LAMP sever on Ubuntu
LAMP stands for Linux, Apache, PHP and MySQL . It is actually a set of open source software packages which allows us to run dynamic web pages using PHP. In this post , we’ll learn how to set up LAMP on local ubuntu machine.
First open the terminal and run the following command
sudo apt-get update
You can simply copy paste the code to avoid any error. You can go with the default settings for the installation.
apache2.conf file in Gedit using the following command
sudo -H gedit /etc/apache2/apache2.conf
Add following line to the end of the
Now , run the following command
sudo chown $USER /var/www/html
Now open http://localhost/ on your browser. You will see a page like this.
We have successfully installed LAMP on Ubuntu. If you faced any problem , feel free to comment below.