Linux - eekbot/public GitHub Wiki
Installing Apache
# worked on Ubuntu 20
netadmin@az700-vm01:~$ sudo apt install apache2
# verifies installation
netadmin@az700-vm01:~$ apt -qq list apache2
apache2/focal-updates,focal-security,now 2.4.41-4ubuntu3.15 amd64 [installed]
# opens fw for http only:
netadmin@az700-vm01:~$ sudo ufw allow Apache
Rules updated
Rules updated (v6)
# opens fw for https only:
netadmin@az700-vm01:~$ sudo ufw allow 'Apache Secure'
Rules updated
Rules updated (v6)
# opens fw for both http and https:
netadmin@az700-vm01:~$ sudo ufw allow 'Apache Full'
Rules updated
Rules updated (v6)
# Verifies process status:
netadmin@az700-vm01:~$ systemctl status apache2
# Automatically starts httpd service on boot:
netadmin@az700-vm01:~$ sudo systemctl enable apache2
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2