How To Install the Apache Web Server on Ubuntu 16.04

STEP 1: INSTALL APACHE

Apache is available within Ubuntu’s default software repositories, so we will install it using conventional package management tools
Commands
CMD: sudo apt-get update
CMD: sudo apt-get install apache2

STEP 2: ADJUST THE FIREWALL

We can list the ufw application profiles by typing:
CMD:sudo ufw app list
You should get a listing of the application profiles:
OUTPUT:
Available applications:
Apache
Apache Full
Apache Secure
OpenSSH
we will allow incoming traffic for the Apache Full profile by typing:
sudo ufw allow ‘Apache Full’

STEP 3: CHECK YOUR WEB SERVER

CMD: sudo systemctl status apache2
CMD: hostname -I
When you have your server’s IP address or domain, enter it into your browser’s address bar:
http://server_domain_or_IP

No comments:

Post a Comment

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...