Install LAMP server in Ubuntu 16.04

Hey folks, in this series of tech tutorials we are going to see how to install LAMP server in Ubuntu 16.04.
LAMP refers to Linux, Apache, MySQL, and PHP.
It is used by Linux administrators to power up their machines with a server so to run PHP files or maybe, host a website.
First of all, enter the system as root to install apache server by entering the following command:
sudo apt-get install apache2
Screenshot from 2017-09-03 19-38-01
Next step is to install MySQL server, which can be done by entering the following command from the terminal.
sudo apt-get install mysql-server
Screenshot from 2017-09-03 19-43-49
Next step is to update your system by entering:
sudo apt-get update
Screenshot from 2017-09-03 19-45-09
In the next step, we are going to install PHP bundle, which will be used to run PHP scripts:
sudo apt-get install php7.0-cli
Screenshot from 2017-09-03 19-47-10
Now, we will use some commands to check whether the installation has been done correctly or not.
Have root access and enter the following commands to start Apache's service.
systemctl enable apache2
 systemctl start apache2
systemctl status apache2
Screenshot from 2017-09-03 20-01-58
Next step is to check mysql service, which can be done by entering the following command:
mysql -u root -p
Screenshot from 2017-09-03 19-53-09
Once you have all these files configured, now it's time to check to move on to our the final step, which is to visit the local web page in your browser. Enter the following command in your browser:
http://localhost/
and hit enter to have your server up and running.
Screenshot from 2017-09-03 19-58-08
Thanks for reading guys, much love and don't forget to like, share and subscribe  our youtube channel for more tech videos.

Comments

Popular Posts