Simple enough. Just type `sudo pkg install nextcloud`
When it finishes installing the software this is the output.
Message from nextcloud-11.0.3:
***********************************************************************
* MIGRATION FROM OWNCLOUD *
***********************************************************************
If you are migrating from existing owncloud instance, you should do
the following steps:
- Copy/Move owncloud/data directory to nextcloud/data (don't forget
hidden files)
- Copy/Move owncloud/config/config.php to nextcloud/config/config.php
- Change the datadirectory in nextcloud/config/config.php
- Ensure nextcloud/data and nextcloud/config/config.php are owned by
www user and group
***********************************************************************
* POST INSTALL CONFIGURATION *
***********************************************************************
Please note that everything has been installed in /usr/local/www/nextcloud.
You will probably want to add an alias to your httpd.conf file, something
like this:
Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
AllowOverride All
Require all granted
</Directory>
And restart Apache.
***********************************************************************
* NEXTCLOUD VERSION UPGRADE *
***********************************************************************
After a version migration you should upgrade your nextcloud instance
using command line:
* cd /usr/local/www/nextcloud
* su -m www -c "php ./occ upgrade"