I have a fresh install of Ubuntu Server 22.04, on which I installed apache2 via apt-get install
After the installation I got the following error whenever I tried to start Apache2:
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
After some investigation, I found that httpd was already bound to port 80 and preventing Apache2 starting. I hadn't realised that this version of Ubuntu Server came pre-installed with Nextcloud (via snap) which obviously already had a webserver to run!
Killing the process doesn't seem to work, as it just springs back up again before I can restart apache2.
There is no /etc/httpd
directory and the /etc/apache2/
path relates to my installation that can't start, so how do I find the config files of the mysterious apache server that is already running?
I would eventually want to have Nextcloud running on this system but my primary goal is to have a running webserver to serve pages locally on the network.
Thanks in advance
James