nextcloud on fedora 27, using snap
$ snap install nextcloud
$ sudo snap get nextcloud ports
Key Value
ports.http 80
ports.https 443
$ sudo snap set nextcloud ports.https=12345 ports.http=12344
$ sudo $(which nextcloud.occ) install <admin-user> <admin-pw>