Ubuntu apachectl[2242]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

After installing OpenVAS from Ubuntu 2020.4 from a fresh image, the gsad service appears to be listening on port 80/tcp and redirecting requests to https://127.0.0.1:9390, but as a result, Apache now fails to start by default on port 80/tcp and the following error is displayed:

ubuntu apachectl[2242]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

This is essentially breaking default Apache installations on a fresh Ubuntu 2020.4 image. How do I disable gsad from listening on port 80/tcp on startup?

GVM versions

Latest GVM 11 from Ubuntu 2020.4 repos

Environment

Operating system: Ubuntu 2020.4
Kernel: (‘Linux ubuntu 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux’)
Installation method / source: apt install openvas

You can pass the following command line parameter to the gsad daemon when starting it up (e.g. from your startup script) so that no bind / no redirect from port 80 is done:

  --no-redirect                          Don't redirect HTTP to HTTPS.
1 Like