I wrote how to setup Nextcloud 13 inside FreeBSD Jail here: https://vermaden.wordpress.com/2018/04/04/nextcloud-13-on-freebsd/