Nginx support for nextCloud

You’re confusing the NC package with the one provided by your distro. Only install an AMP or NMP stack via distro packages and install Nextcloud the normal way, by creating a vhost and putting the files from the NC package in the root folder for that vhost.