diff --git a/admin_manual/installation/source_installation.rst b/admin_manual/installation/source_installation.rst index 2b7784d9840..bcc80e41a5d 100644 --- a/admin_manual/installation/source_installation.rst +++ b/admin_manual/installation/source_installation.rst @@ -2,48 +2,191 @@ Installation on Linux ===================== -There are multiple ways of installing Nextcloud depending on your preferences, requirements and goals. - -If you prefer an automated installation, you have the option to: - -* use the `official Nextcloud installation method `_. Nextcloud AIO provides easy deployment and maintenance with most features included in this one Nextcloud instance. It includes Office, a turnkey Backup solution, Imaginary (for previews of heic, heif, illustrator, pdf, svg, tiff and webp) and more. -* use the `community Snap Package `_. This includes a full production-ready stack, will maintain your HTTPS certificates for you, and will automatically update as needed to stay secure. -* use the `community Nextcloud VM Appliance `_ (aka Nextcloud Virtual Machine or NcVM). This helps you create a personal or corporate Nextcloud Server faster and easier. It can be used install directly on a clean Ubuntu Server or downloaded as a fully functioning VM. -* use the `community NextcloudPi scripts `_ (based on Debian). It will setup everything for you and include scripts for automated installation of apps like: Collabora, OnlyOffice, Talk and so on. -* use the `community Nextcloud Docker image `_. This image is designed to be used in a micro-service environment. There are two versions of the image you can choose from: the Apache one contains a full Nextcloud installation including an Apache web server. The second option is an FPM installation and runs a FastCGI process that serves your Nextcloud installation (you will need to supply your preferred web, database and other desired supplementary services). - -.. note:: Please note that the community options are not officially supported by Nextcloud GmbH. - -.. tip:: For an enterprise-ready and scalable installation based on Helm Charts (also available for Podman), please `contact Nextcloud GmbH `_. +Introduction +------------ -In case you prefer installing from the source tarball, you can setup Nextcloud -from scratch using a classic LAMP stack (Linux, Apache, MySQL/MariaDB, PHP). -This document provides a complete walk-through for installing Nextcloud on -Ubuntu 24.04 LTS Server with Apache and MariaDB, using `the Nextcloud .tar -archive `_. This method is recommended to install Nextcloud. +This installation guide provides a general overview of required dependencies and their +configuration for a typical manual (i.e. from scratch) installation on Linux. This is referred to +as an "archive-based installation" (i.e. from a ``.tar.bz2`` or ``.zip`` archive). In addition, +alternative installation methods are highlighted for the reader's consideration. -This installation guide is giving a general overview of required dependencies and their configuration. For a distribution specific setup guide have a look at the :doc:`./example_ubuntu` and :doc:`./example_centos`. +Overview +-------- + +If you prefer the flexibility and control of installing from a source archive (tarball / zip file), +you can setup a Nextcloud stack from scratch. Nextcloud utilizes a classic LAMP-style stack (i.e. +Linux, Apache, MySQL/MariaDB, PHP) along with some variations (i.e. different database backends) and +optional stack components (i.e. distributed in-memory databases and in-memory caching for added +performance or scalability). + +.. tip:: Optional Nextcloud stack components, such as the in-memory databases and in-memory caching + provided by Redis are useful even in smaller deployments. For this reason they are recommended for + all use cases. However, they are not required for initial installation, and are easy to integrate + afterwards when/if desired. + +The Nextcloud ``.tar.bz2`` archive contains the source code for Nextcloud Server itself as well as +the default apps and third-party libraries needed to run Nextcloud. + +This document provides a walk-through for installing Nextcloud on an Ubuntu instance (Server-edition / +LTS), with Apache and MariaDB, using the downloadable Nextcloud Server `archive file +`_. This is the recommended method for installing Nextcloud from +scratch. + +Additional example installation guides, based on this material, for specific \*NIX OS distributions are +also available: + +- :doc:`./example_ubuntu` +- :doc:`./example_centos`. +- :doc:`./example_openbsd`. + +Alternative Installation Methods +-------------------------------- + +If you prefer or require an installation method that is more "packaged" or automated than a standard +archive-based installation, there are alternative installation methods. + +.. note:: Note that there is some variance between installation methods in terms of functionality and + requirements. Consult each installation method's official documentation for specifics. + +* Nextcloud All-in-One (aka AIO) + - An official installation method that is maintained by `Nextcloud GmbH `__ (the + company behind Nextcloud). + - A pre-designed and container-based full Nextcloud stack. + - Designed for ease of deployment and maintenance with most features included, for tens to hundreds of users. + - Includes Office, a turnkey Backup solution, Imaginary (for previews of heic, heif, illustrator, + pdf, svg, tiff and webp) and much more (many components are optional). Full feature list available + `here `__. + - Free community support is provided `on GitHub `__ + (on a best efforts basis). + - For larger installations (>100 users) an AIO specific `Nextcloud Enterprise arrangement + `__ is available (it includes a support SLA, security information and + all the other benefits that come with `Nextcloud Enterprise `__). + - `Official Documentation `__ (**Note**: see + Official Documentation for AIO specific installation and usage details. You can search through it by using + the browser search via ``[CTRL]+[F]``). Additional documentation `can be found here + `__. +* Nextcloud Community Snap + - A community-driven installation method that is actively maintained by amazing Nextcloud community members + (make sure to thank them - or find a way help them out - if you get the opportunity!). + - A full production-ready stack that will maintain your HTTPS certificates for you and will automatically + update as needed to stay secure. Full feature list available + `here `__. + - Designed specifically for Ubuntu (`non-Ubuntu distributions are not officially supported + `__). + - The stack is sealed: you can't add system packages or PHP modules yourself, so features that need them + (e.g. `SMB/CIFS external storage `__) may not + be available. Check the documentation for limitations before choosing it. + - `Official Wiki `__ + - `Official Documentation `__ (**Note**: see Official + Documentation - and Wiki - for Snap specific installation and usage details). +* Nextcloud Community VM Appliance (aka Nextcloud Virtual Machine or NcVM) + - A community-driven installation method that is actively maintained by amazing Nextcloud community members + (make sure to thank them - or find a way to help them out - if you get the opportunity!) and partner Hansson + IT. + - Helps you create a personal or corporate Nextcloud Server faster and easier. + - Can be used to install directly on a clean Ubuntu Server (as an install script) or downloaded as a fully + functioning VM. Full feature list available `here + `__. + - `Official Documentation `__ (**Note**: see Official Documentation + for VM specific installation and usage details). +* NextcloudPi (aka: NCP) + - A community-driven installation method that is actively maintained by amazing Nextcloud community members + (make sure to thank them - or find a way help them out - if you get the opportunity!). + - A ready to use image for Virtual Machines, Raspberry Pi, Odroid HC1, Rock64 and other boards. Also supports + LXD and LXC containers and there is an install script for the latest supported Debian based system as well. + - It will setup everything for you and include scripts for automated installation of apps like: Collabora, + OnlyOffice, Talk and so on. Full feature list available + `here `__. + - Also manages the underlying system for use in a home network: dynamic DNS, Let's Encrypt certificates, + backups, and so on. Well suited to a device on your local network, less so to a public server. + - `Official Documentation `__ (**Note**: see Official Documentation + for NCP specific installation and usage details). +* Nextcloud Community Docker Image + - A community-driven installation method that is actively maintained by amazing Nextcloud community members + (make sure to thank them - or find a way help them out - if you get the opportunity!). + - Two editions of the image are provided for building different types of Nextcloud stacks: the Apache image + contains a full Nextcloud installation including an Apache web server. The second option is an FPM + installation and runs a FastCGI process that serves your Nextcloud installation. The standard images are + Debian-based, but Alpine variants are offered as well. + - This image is designed for expert use and intended to be used in a micro-service environment where you can + incorporate as a building block in your own Nextcloud stack (i.e. you will not need to install/update + Nextcloud, but you will need to supply your preferred web, reverse proxy, HTTPS termination, database and + other desired supplementary services). + - Full Nextcloud stacks, incorporating the image, are provided in the form of example Docker Compose files + and Dockerfile variations. Full feature list available `here `__. + - `Official Documentation `__ (**Note**: see Official Documentation + for Image specific installation and usage details). +* Nextcloud Web Installer + - The Web Installer is an easy way to install Nextcloud Server in a shared / managed web space (e.g. shared + hosting) if you don't have access to the command line and if your environment meets the requirements. + - Checks for essential PHP dependencies, downloads the Nextcloud archive file from the official server, and + unpacks it with the right permissions then directs you to the Nextcloud Server Setup Wizard. + - Whether it works depends a lot on the hosting environment (PHP version and modules, memory and execution + time limits, cron support). See `this community guide + `__ for what to check first. + - `Official Documentation `__ +* One Click Signup + - An alternative to providing your own installation environment and installing and keeping a Nextcloud Server + up-to-date yourself. Nothing is installed by you: the provider runs the instance. + - You are not in control of the setup: you have to trust the provider as you would any other cloud storage + provider. Check its terms, data location and how you can export your data before relying on it. + - A good way to get the look and feel of Nextcloud and try it out. + - Hosting offered by independent Nextcloud providers from all over the world. + - Each has committed to providing you 2+ GB of storage on a 100% free single user account, with all the basic + Nextcloud apps. + - Through One Click Signup, getting started is made as easy as possible. You can go with the suggested default provider + (based on your location) or choose another. + - To sign-up click *Sign up with a provider* `here `__. +* Nextcloud Enterprise + - An official Nextcloud GmbH maintained installation method. + - Optimized and tested for mission-critical deployment, Nextcloud helps your organization achieve digital + sovereignty with full security compliance. + - For organizations from 50 to tens of millions of users in industries including education, government, legal + and financial services and manufacturing. Customers include SIEMENS, all French universities covered under + RENATER, the German Federal Government and more. + - Suited to integrating Nextcloud into existing infrastructure (user directories, storage and + authentication backends), which needs more experience than a standalone setup. + - For details, see `Nextcloud Enterprise `__. + +.. tip:: The nuances of alternative packaging / installation methods mean that certain details may differ from an + archive-based installation. This is true even though all alternative installation methods ultimately utilize + an archive-based installation method underneath (one way or another). Example differences can include log + locations, configuration paths, and procedures for ``occ`` command access, installing, and updating. Refer to + each installation method's own dedicated documentation for specific differences. + +.. tip:: For an enterprise-ready and scalable installation based on Helm Charts (also available for Podman), please `contact Nextcloud GmbH `__. + +.. note:: Please note that the community options are not officially supported by Nextcloud GmbH and support is primarily peer-based via community channels. .. _prerequisites_label: - -.. note:: Admins of SELinux-enabled distributions such as CentOS, Fedora, and - Red Hat Enterprise Linux may need to set new rules to enable installing - Nextcloud. See :ref:`selinux_tips_label` for a suggested configuration. - Prerequisites for manual installation ------------------------------------- -The Nextcloud .tar archive contains all of the required PHP modules. -Your Linux distribution should have packages for all required modules. -See :doc:`php_configuration` for a list of required and suggested modules. +WebDAV +^^^^^^ -You don’t need the WebDAV module for your Web server (i.e. Apache’s +You don’t need a WebDAV module for your Web server (i.e. Apache’s ``mod_webdav``), as Nextcloud has a built-in WebDAV server of its own, -SabreDAV. -If ``mod_webdav`` is enabled you must disable it for Nextcloud. (See +SabreDAV. If ``mod_webdav`` is enabled you must disable it. (See :ref:`apache_configuration_label` for an example configuration.) +PHP Extensions +^^^^^^^^^^^^^^ + +There are some PHP extensions that must be installed and enabled before +attempting to install Nextcloud Server. Your Linux distribution, in most +cases, will have packages for these required PHP extensions (or they +will be enabled already by default). See :doc:`php_configuration` for a +list of required and suggested PHP extensions. + +SELinux +^^^^^^^ + +SELinux-enabled distributions such as CentOS, Fedora, and Red Hat Enterprise +Linux may need to set new rules to enable installing Nextcloud. See +:ref:`selinux_tips_label` for a suggested configuration. + .. _apache_configuration_label: Apache Web server configuration