Skip to content

2.2.9 Ensure HTTP server is not installed

Audit#

Run the following command to verify apache is not installed:

# dpkg-query -W -f='${binary:Package}\t${Status}\t${db:Status-Status}\n' apache2
apache2 unknown ok not-installed not-installed

Remediation#

Run the following command to remove apache:

# apt purge apache2