SSH into your target server:
Configure the PHP settings for Nextcloud by editing your php.ini file (typically found under /etc/php/8.x/fpm/php.ini depending on your PHP version):
ProxyPreserveHost On ProxyPass http://127.0.0.1:8780/exapps/ nocanon ProxyPassReverse http://127.0.0.1:8780/exapps/ Use code with caution. Copied to clipboard
Nginx provides an efficient, low-overhead event loop architecture that matches perfectly with ARM-based multi-core cloud instances. Install the Nginx server package: sudo apt install -y nginx Use code with caution.
<?php 'config_version' => 22, 'instanceid' => 'oc123456', 'passwordsalt' => 'strong_password', 'secret' => 'strong_secret', 'trusted_domains' => array ( 0 => 'example.com', ), 'datadir' => '/var/www/nextcloud/data', 'dbtype' => 'mysql', 'dbhost' => 'localhost', 'dbname' => 'nextcloud', 'dbuser' => 'nextcloud', 'dbpassword' => 'strong_password', );
Nextcloud was downloaded and installed:
Whether your services are hosted on a or distributed across multiple nodes .
Nextcloud is a premier self-hosted cloud platform for managing files, calendars, contacts, and communication. Deploying Nextcloud on an ARM64 architecture—specifically utilizing Ampere Altra processors on Hetzner Cloud (often referred to in the community context of Hetzner ARM Performance)—offers exceptional performance and energy efficiency at a low cost.
Install Apache along with PHP and the extension modules required by Nextcloud:
Listen 8080 ServerName ://yourdomain.com DocumentRoot /var/www/html/nextcloud/ Require all granted AllowOverride All Options FollowSymLinks MultiViews Dav off ErrorLog $APACHE_LOG_DIR/nextcloud_error.log CustomLog $APACHE_LOG_DIR/nextcloud_access.log combined Use code with caution.