# install apache on ubunto 20.04 #
---
## ● Step 1 — Installing Apache ##
### 1: *$ sudo apt update*
##
### 2: *$ sudo apt install apache2*
##
## ● Step 2 — Adjusting the Firewall ##
*$ sudo ufw app list*
###
#### Output: ####
> + Available applications:*$ sudo ufw allow 'Apache'*
##
## ● Step 3 — Checking your Web Server ##
### *$ sudo systemctl status apache2*
###
#### Output: ####
> apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-04-23 22:36:30 UTC; 20h ago
Docs: https://httpd.apache.org/docs/2.4/
Main PID: 29435 (apache2)
Tasks: 55 (limit: 1137)
Memory: 8.0M
CGroup: /system.slice/apache2.service
├─29435 /usr/sbin/apache2 -k start
├─29437 /usr/sbin/apache2 -k start
└─29438 /usr/sbin/apache2 -k start
## Try typing this at your command prompt(server): ##
### *$ hostname -I*
###
Another option is to use the Icanhazip tool, *$ curl -4 icanhazip.com*
###
When you have your IP address(server), enter it into your address bar(browser):
http://your_server_ip
---
# uninstall apache on ubunto 20.04 #