Nextcloud install - port 80 blocked by bitwarden

Hey folks,

I (absolute self-hosting-rookie) was trying to install a nextcloud server next to my bitwarden server on the same debian 9.0 machine.

my bitwarden service is up and running perfectly fine.

did install nextcloud via snap. worked.

tried to configure apache2. figured out there is nothing to install because apache is not yet installed.

so i tried to install apache2, but leaving me with the following error:

(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

i think it is due to docker already listening on port 80 (for bitwarden server).

now i am not sure how to make it work…

any suggestions?

kind regards!

edit - 30.10.2018, 23:23 :

I am currently trying it with alternate ports, as specified in this thread:

https://help.nextcloud.com/t/change-port-443-and-80/13742/4

so I changed ports in

/etc/apache2/ports.conf

and

/etc/apache2/sites-available/nextcloud.conf

from 80 to 8001 and from 443 to 44301

furthermore, following the configuration in this guide: https://github.com/nextcloud/nextcloud-snap

sudo snap set nextcloud ports.http=8001 ports.https=44301

but now I will probably have the problem of let’s encrypt not verifying ownership… :expressionless:

any further ideas? i never set up a proxy in my life…

edit - 02.11.2018, 12:00:

I found a link that explains how to make nextcloud listen on different ports and how to setup the according reverse proxy:

Puting Nextcloud (snap install) behind a reverse proxy

Summary

This text will be hidden

You can use DNS to verify ownership. There is a how at NCP-wiki.