How to Install and Configure Nextcloud on a Hosteons VPS

Nextcloud is a powerful open-source self-hosted cloud storage solution that allows you to store, share, and access your files from anywhere — securely and privately. With a VPS from Hosteons, you can deploy your own Nextcloud instance in minutes.


✅ Prerequisites

Before starting, make sure:

  • You have a Hosteons KVM VPS with at least 1 GB RAM (2 GB recommended).
  • You’re using Ubuntu 22.04 (or a similar Linux distro).
  • You have a domain name pointed to your VPS IP (optional but recommended).
  • SSH access to the VPS (as root or sudo user).

🧰 Step 1: Update Your System

sudo apt update && sudo apt upgrade -y

⚙️ Step 2: Install Required Dependencies

sudo apt install apache2 mariadb-server libapache2-mod-php \
php php-gd php-mysql php-curl php-mbstring php-xml php-zip php-bz2 php-intl php-imagick php-gmp php-bcmath unzip wget -y

🗄️ Step 3: Configure MariaDB

sudo mysql_secure_installation

Then log into MariaDB:

sudo mysql -u root -p

Run the following queries to create a database and user:

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

📦 Step 4: Download and Extract Nextcloud

cd /var/www/
sudo wget https://download.nextcloud.com/server/releases/latest.zip
sudo unzip latest.zip
sudo chown -R www-data:www-data nextcloud
sudo chmod -R 755 nextcloud

🌐 Step 5: Configure Apache for Nextcloud

Create a new config file:

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

Paste this:

<VirtualHost *:80>
    ServerName yourdomain.com

    DocumentRoot /var/www/nextcloud

    <Directory /var/www/nextcloud/>
        Require all granted
        AllowOverride All
        Options FollowSymlinks MultiViews
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/nextcloud_error.log
    CustomLog ${APACHE_LOG_DIR}/nextcloud_access.log combined
</VirtualHost>

Enable the config and necessary modules:

sudo a2ensite nextcloud.conf
sudo a2enmod rewrite headers env dir mime
sudo systemctl restart apache2

🔐 (Optional) Step 6: Secure with HTTPS using Let’s Encrypt

sudo apt install certbot python3-certbot-apache -y
sudo certbot --apache

🧪 Step 7: Final Setup via Web UI

Open your browser and go to http://yourdomain.com or http://your_server_ip

You’ll see the Nextcloud installer. Enter:

  • Admin username and password
  • Database name: nextcloud
  • Database user: nextclouduser
  • Password: your DB password
  • DB host: localhost

Click Finish Setup.


🎉 Done!

Nextcloud is now ready on your Hosteons VPS. You can install the mobile or desktop apps and start syncing your files securely.


🚀 Need a VPS?

Hosteons offers powerful, affordable VPS solutions with full root access, 10Gbps ports, and global payment methods including Crypto, Alipay, UPI, and more.

👉 Explore VPS Plans

🚀 What Is VPS Hosting and When Should You Use It?

Understanding VPS and Why It’s the Smart Middle Ground Between Shared Hosting and Dedicated Servers

If you’re launching a website or planning to move from basic shared hosting, you’ve probably come across the term VPS Hosting. But what exactly is it, and is it the right fit for your project?

At HostEONS, we provide reliable, high-performance VPS hosting trusted by developers, businesses, and entrepreneurs worldwide. This guide will help you understand what VPS hosting is, how it works, and when to use it.


🖥️ What Is VPS Hosting?

VPS stands for Virtual Private Server. It’s a type of hosting where a physical server is divided into multiple virtual machines, each with its own dedicated resources (RAM, CPU, storage) and full root access.

It’s like having your own mini server on a bigger physical server — giving you the freedom and power of a dedicated server without the high cost.

🔧 Key Features of VPS Hosting:

  • Full root or administrative access
  • Dedicated resources (not shared like in shared hosting)
  • Ability to install custom software
  • Choice of operating system (Linux, Windows, etc.)
  • Scalability and better performance

🏗️ How VPS Hosting Works

Using virtualization technology (like KVM, which HostEONS uses), the physical server is split into isolated virtual environments. Each VPS operates independently, which means:

  • One VPS crashing doesn’t affect others
  • You control your VPS fully — install software, change configurations, run scripts
  • You get better security and performance than shared hosting

✅ When Should You Use VPS Hosting?

1. You’ve Outgrown Shared Hosting

If your site is experiencing slow loading times, resource limits, or needs more control, VPS is the logical next step.

2. You Run High-Traffic or Resource-Intensive Websites

For blogs, ecommerce stores, or business sites that require higher uptime and faster performance, VPS hosting gives you the boost you need.

3. You Want to Host Custom Applications

Need to run Node.js, Docker, game servers, or any custom backend? You can’t do this on shared hosting — but it’s easy with VPS.

4. You’re a Developer or Agency Hosting Multiple Projects

VPS gives you the flexibility to manage staging, development, and production environments separately, all in one server.

5. You Care About Security and Isolation

Unlike shared hosting, where many users share the same environment, VPS gives you a private space, reducing the risk of cross-site contamination or data leaks.


🆚 VPS vs Shared Hosting vs Dedicated Server

FeatureShared HostingVPS HostingDedicated Server
Resource Isolation❌ Shared✅ Dedicated (virtual)✅ Dedicated (physical)
Root Access❌ No✅ Yes✅ Yes
Cost💲 Lowest💲💲 Moderate💲💲💲 Highest
Performance🚫 Limited⚡ Great🚀 Excellent
Custom Software❌ No✅ Yes✅ Yes

🌍 Why Choose HostEONS for VPS Hosting?

At HostEONS, we offer:

✅ KVM-based VPS with full root access

✅ Instant setup across global locations: USA (6 cities), Frankfurt, Paris

✅ Crypto & local payments (Alipay, Boleto, OXXO, SEPA, iDEAL, etc.)

✅ Affordable plans starting from just $3.50/month

✅ No overselling, no gimmicks — just performance

🔗 Explore VPS Plans

📩 Contact Us