29 C
Gujarat,India
Installing Apache on Ubuntu 16.04

Installing Apache on Ubuntu 16.04

0
69
small_user_interface
small_user_interface

Installing LAMP on Ubuntu 16.04

Before we begin the installation, it is important that your system is up to date, you can do so with the following command:

apt update

Once updating, we can get to the first step of making a LAMP stack by installing Apache.

Installing Apache on Ubuntu 16.04

Install Apache by running the following command:

apt install apache2

Hit enter to when it asks “Do you want to continue?” during the install.

After the install, you can check to see if Apache is running by running the command:

service apache2 status

Also, you can verify if all is working by opening your browser and going to

If you do not know your IP address, you can run the following command:

ifconfig

In our case, we would put http://172.20.6.154 in your browser’s address bar and get the following page:

Installing MySQL on Ubuntu 16.04

Install MySQL with the following command:

sudo apt install mysql-server php7.0-mysql

Hit enter to when it asks “Do you want to continue?” during the install.

During the install, it will prompt you to enter a MySQL root password. Set any password that you would like. It should be a strong password.

MySQL, Install Apache, PHP (LAMP) Stack On Ubuntu 16.04 In Linux

જવાબ છોડો