Independent testing Updated April 2026 387 self-hosting guides 5 VPS providers tested

guide

How to Self-Host Nextcloud on Contabo (2026 Guide)

Learn how to self-host Nextcloud on Contabo with a detailed 2026 guide covering setup, configuration, and the recommended specs for a smooth deployment.

How to Self-Host Nextcloud on Contabo (2026 Guide)

In the world of self-hosting, Nextcloud stands out as an excellent open-source alternative to cloud storage solutions like Google Drive and Dropbox. Installing Nextcloud on a Contabo VPS provides a perfect blend of performance and affordability. In this guide, we will walk you through the steps to set up your own instance of Nextcloud on a Contabo VPS, which starts at just €5.99 per month.

Why Choose Contabo for Nextcloud?

Contabo offers reliable and affordable VPS hosting solutions that are ideal for developers and homelab enthusiasts. The following table highlights key features of popular VPS providers including Contabo:

ProviderPriceRAMSSD StorageBandwidth
Contabo VPS€5.99/mo4 GB200 GB100 Mbps
Hetzner Cloud€4.15/mo4 GB20 GB1 Gbps
DigitalOcean$6/mo2 GB50 GB2 TB
Vultr$6/mo2 GB45 GB1 TB
Linode (Akamai Cloud)$5/mo2 GB50 GB2 TB

When it comes to resource allocation and bandwidth, Contabo provides great value, making it an excellent choice for hosting a personal cloud.

Prerequisites

Before getting started, ensure you have:

Step-by-Step Installation Guide

Step 1: Set Up Your VPS

  1. Create an account on Contabo and select a VPS plan that meets the above requirements.
  2. Follow the setup instructions and log in to your new VPS via SSH.
    ssh root@your_vps_ip

Step 2: Update Your System

apt update && apt upgrade -y

Step 3: Install Required Software

Nextcloud requires a web server and database. We will use Apache and MySQL.

  1. Install Apache, PHP, and MySQL/MariaDB:
    apt install apache2 mariadb-server php libapache2-mod-php php-mysql php-gd php-xml php-zip php-curl php-mbstring php-intl -y
  2. Enable Apache modules:
    a2enmod rewrite
    systemctl restart apache2

Step 4: Configure MySQL/MariaDB

  1. Secure your installation:

    mysql_secure_installation
  2. Create a database and user for Nextcloud:

    mysql -u root -p

    Inside the MySQL shell, run:

    CREATE DATABASE nextcloud;
    CREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'your_password';
    GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost';
    FLUSH PRIVILEGES;
    EXIT;

Step 5: Download and Install Nextcloud

  1. Download Nextcloud:

    cd /var/www/html
    wget https://download.nextcloud.com/server/releases/nextcloud-24.0.2.zip
    unzip nextcloud-24.0.2.zip
    chown -R www-data:www-data nextcloud
    chmod -R 755 nextcloud
  2. Create an Apache configuration file for Nextcloud:

    nano /etc/apache2/sites-available/nextcloud.conf

    Add the following content:

    <VirtualHost *:80>
        DocumentRoot /var/www/html/nextcloud
        ServerName your_domain.com
    
        <Directory /var/www/html/nextcloud/>
            Options Indexes FollowSymlinks MultiViews
            AllowOverride All
            Require all granted
        </Directory>
    
        ErrorLog ${APACHE_LOG_DIR}/nextcloud-error.log
        CustomLog ${APACHE_LOG_DIR}/nextcloud-access.log combined
    </VirtualHost>
  3. Enable the site and restart Apache:

    a2ensite nextcloud.conf
    a2enmod headers
    systemctl restart apache2

Step 6: Complete the Installation via Web Interface

  1. Open a web browser and navigate to http://your_domain.com.

  2. You will be presented with the Nextcloud setup screen. Enter the database details you created in Step 4:

    • Database user: nextclouduser
    • Database name: nextcloud
    • Database password: your_password
  3. Create your admin account and complete the installation process.

FAQs

What is Nextcloud, and why should I self-host it?

Nextcloud is a powerful open-source software suite that provides file synchronization and sharing, along with calendar, contacts, and collaborative document editing features. Self-hosting it gives you full control over your data, enhances privacy, and ensures that your files are not stored on third-party servers. This is ideal for developers or privacy-conscious users who prefer not to depend on public cloud services.

How secure is my data when using Nextcloud on Contabo?

Using Nextcloud on Contabo can be secure if properly set up. Security measures include enabling HTTPS via SSL certificates, configuring proper firewall rules, and regularly updating your Nextcloud and server software to patch vulnerabilities. Contabo provides a reliable infrastructure, but user responsibility for maintaining security best practices is vital for protecting your data.

Can I access Nextcloud from my mobile device?

Yes, Nextcloud has mobile apps available for both Android and iOS, allowing you to easily access your files from your smartphone or tablet. You can manage your documents, share files, and collaborate with others directly through the app. This makes it a flexible solution for self-hosted file storage.

With this guide, you are now equipped to self-host Nextcloud on Contabo. For more options and comparisons, visit our full VPS comparison. Happy self-hosting!