EN · $

Setting up Nextcloud on Shared Hosting: Step-by-Step Guide

Learn how to install Nextcloud on shared hosting, automatically scale PHP resources, and optimize cron jobs for a high-performance cloud solution.

Why Nextcloud on Shared Hosting?

Nextcloud is a powerful open-source cloud platform that gives you full control over your data. You can run Nextcloud on shared hosting as well if you use resources cleverly. In this guide, we show you how to set up Nextcloud, automatically scale PHP resources, and optimize cron jobs.

Step 1: Check Requirements

Make sure your shared hosting meets the following requirements:

  • PHP 8.0 or higher
  • MySQL/MariaDB database
  • Support for .htaccess and mod_rewrite
  • Sufficient storage space (at least 1 GB)

All requirements are met by default with our web hosting packages.

Step 2: Download and Upload Nextcloud

Download the latest version of Nextcloud from the official website. Extract the archive and upload the folder via FTP to the root directory of your domain (e.g., public_html).

Step 3: Create Database

Create a new MySQL database with a user in your hosting control panel (e.g., cPanel). Note down the access data.

Step 4: Install via Browser

Open your domain in the browser. The Nextcloud installer guides you through the setup. Enter the database details and create an admin account.

Step 5: Automatically Scale PHP Resources

Shared hosting has limited PHP resources. Optimize the php.ini or use the .user.ini file:

  • Increase memory_limit to 512 MB
  • Set upload_max_filesize to 2 GB
  • Adjust max_execution_time to 3600

With our Virtual Server you have more flexibility, but on shared hosting these values are usually sufficient.

Step 6: Optimize Cron Jobs

Nextcloud requires background tasks. Use the Cron mode instead of AJAX:

  1. Go to "Basic Settings" in Nextcloud settings and select "Cron".
  2. Set up a cron job in the hosting control panel that runs every 5 minutes:
    php -f /path/to/nextcloud/cron.php

This relieves your PHP resources and improves performance.

Step 7: Security and Performance

Use strong passwords, enable HTTPS, and configure the Nextcloud caching function (e.g., with Redis). For more performance, we recommend upgrading to VPS, but shared hosting is perfectly sufficient for small installations.

If you don't have a domain yet, get one from our domain registration.