Script to automate installation of Nextcloud on FreeBSD13+ and HardenedBSD13. The finished installation passes all nextcloud configuration checks. This script follows recommended configuration as per https://docs.nextcloud.com/server/stable/admin_manual/installation/system_requirements.html
- Clone repository or download release to your machine and extract.
cd
to folder.- Switch to root by using
su
. - Run
pre_install.sh
as root to create a boot environment and config file before installing, then reboot before moving on. su
again after rebooting, andcd
to the folder.- Open
install.conf
with your favourite editor. (Note: see https://www.php.net/manual/en/timezones.php for your time zone) - Change the values of variables as required to suite your environment.
- Save the file.
- Run
install.sh
- Please be patient while the script runs
- Done
Installs the following:
- Nextcloud 28
- Apache 2.4
- MariaDB 10.6
- PHP 8.3 (plus all php-extensions required)
- Redis
- ClamAV
- Apache 2.4 + PHP using
php-fpm
- HTTP/2 over TLS
- TLS1.3 only
- HSTS enabled
- APCu enabled
- Redis enabled (allows transactional file locking)
- Antivirus for Files
- Calendar
- Contacts
- Deck
- Notes
- Nextcloud Talk
- Tasks
- External storage support (including
samba
andftp
) (Can be disabled independently)