Skip to content

theGeeBee/NextCloudOnFreeBSD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextCloud on FreeBSD

Script to automate installation of Nextcloud on FreeBSD14+ and HardenedBSD14+ 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

Requirements

  • Fresh install of FreeBSD 14+ / HardenedBSD 14+
  • Lib32 for integrated DocumentServer support (this is the plugin version)
  • ZFS. The pre-installer creates a new boot environment, which is not supported on UFS.

Instructions

  1. Read the instructions, and the scripts! :)
  2. Clone repository or download release to your machine and extract.
  3. cd to folder.
  4. Switch to root by using su.
  5. Run pre_install.sh as root to create a boot environment and config file before installing, then reboot before moving on.
  6. su again after rebooting, and cd to the folder.
  7. Open install.conf with your favourite editor. (Note: see https://www.php.net/manual/en/timezones.php for your time zone)
  8. Change the values of variables as required to suite your environment.
  9. Save the file.
  10. Run install.sh
  11. Please be patient while the script runs and drink your prefferred beverage.
  12. Enjoy

Installs the following:

  • Nextcloud 30
  • Apache 2.4
  • MariaDB 11.4
  • PHP 8.3 (plus all required php-extensions)
  • Redis
  • ClamAV
  • SSL Certificate (Let's Encrypt) using certbot
  • Plugin version of the OnlyOffice document server, as a seperate step

Configuration

  • Apache 2.4 + PHP using php-fpm
  • HTTP/2 over TLS
  • TLS1.3 only
  • HSTS enabled
  • APCu enabled
  • Redis enabled (allows transactional file locking)

NextCloud Apps Installed/Activated by default in config

  • Antivirus for Files
  • Calendar
  • Contacts
  • Deck
  • Mail
  • Notes
  • Nextcloud Talk (Spreed)
  • Tasks
  • External storage support (including samba and ftp) (Can be disabled independently)

About

Script to automate installation of NextCloud on FreeBSD

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages