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

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

Next step is to update your system by entering:
sudo apt-get update

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

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

Next step is to check mysql service, which can be done by entering the following command:
mysql -u root -p

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.

Thanks for reading guys, much love and don't forget to like, share and subscribe our youtube channel for more tech videos.
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

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

Next step is to update your system by entering:
sudo apt-get update

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

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

Next step is to check mysql service, which can be done by entering the following command:
mysql -u root -p

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.

Thanks for reading guys, much love and don't forget to like, share and subscribe our youtube channel for more tech videos.
Comments
Post a Comment