Article

Table of Contents
Theme:
Was this article helpful?
Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $600 by adding new articles.

How to Install Cloudron on Ubuntu 20.04

Last Updated: Thu, Dec 9, 2021
CMS System Admin Ubuntu Web Servers

Cloudron is a self-hosting solution that streamlines the installation and management of applications on a server. In addition, the platform enables end-to-end deployment of apps, task automation, automatic backups, and updates making server administration easy.

In this article, you’ll install Cloudron on a Ubuntu 20.04 server and launch apps like WordPress, Next Cloud, Rocket Chat, Gitlab, Open VPN, among many others.

Prerequisites

  • Deploy a fresh Ubuntu 20.04 server on Vultr
  • An active domain name pointed to the Server (A record)
  • SSH and Login to the server
  • Update the server

Step 1: Enable your Vultr Account API

By default, API Access is disabled on Vultr but can be enabled with a click.

First, log in to your Vultr account and navigate to Account. Then, click API. Enable the API and add your Server’s IP Address under Access Control.

Step 2: Install Cloudron

  1. Download the Cloudron setup script using wget.

    # wget https://cloudron.io/cloudron-setup
    
  2. Make the script executable.

    # chmod +x ./cloudron-setup
    
  3. Install Cloudron by running the script.

    # bash cloudron-setup
    

The installation script will take between 5-7 minutes to complete. Once ready, you will be prompted to reboot the server, enter Y to restart.

##############################################
         Cloudron Setup (latest)
##############################################

 Follow setup logs in a second terminal with:
 $ tail -f /var/log/cloudron-setup.log

 Join us at https://forum.cloudron.io for any questions.

=> Updating apt and installing script dependencies
=> Checking version
=> Downloading version 7.0.4 ...
=> Installing base dependencies and downloading docker images (this takes some time) ...
=> Installing version 7.0.4 (this takes some time) ...
=> Waiting for cloudron to be ready (this takes some time) ....

Step 3: Set Up Cloudron

With Cloudron successfully installed on your server, it’s time to configure the platform on your server.

  1. In a Web Browser, visit your Server’s IP Address or linked domain name and accept the self-signed certificate by adding a browser exception.

    http://YOUR_SERVER_IP_ADDRESS      OR      http://example.com
    

    Note: Use these steps to proceed past the security warning.

  2. The Cloudron domain setup dashboard will be displayed. Enter your domain name (non-subdomain).

  3. Under DNS Provider, select Vultr from the drop-down list.
  4. You will be required to enter the Vultr API Token created on Step 1 of this article. Then, click Next to proceed with the setup process and get an SSL certificate for the domain.
  5. Now, set up an Administrator account by entering the Full Name, Email, Username, and Password for the account. Then, click Create Admin to proceed.
  6. Cloudron will create a my.yourdomain subdomain, and automatically redirect you to the main web dashboard. This means the platform is ready to use. You can deploy Apps, set up DNS, create databases, add users, automate backups, among other features.

Step 4: Install Apps on Cloudron

  1. From the main Cloudron dashboard, click App Store to create a free cloudron.io account that will be used to manage subscriptions and billing on your server.
  2. With the free plan, you’ll be able to set up 2 Apps on Cloudron. Set up some by clicking App Store.
  3. Select a new App and click Install. In this article, we will install WordPress.
  4. You will be prompted for the URL location of your new app.
  5. Leave the entry empty to use your main domain name, or enter a subdomain you want the new app to be installed.
  6. To install a second App, for example, OpenVPN, repeat the process but change the URL location to avoid data loss.

Step 5: Configure Automatic Backups with Vultr Object storage

Cloudron supports automatic backups. By default, backups are stored to the same disc as the server instance, and this is not recommended. Instead, you can link a Vultr Object Storage bucket to store your Cloudron backup files.

To create a Vultr Object Storage bucket, go to the products page on your Vultr dashboard, and then navigate to objects.

  1. Click Add Object Storage to select a region and give it a custom label.
  2. Click Manage Object Storage, then copy the Secret key and Access key.
  3. Navigate to Buckets, click Create Bucket, and assign it a name.
  4. Head back to the Cloudron web dashboard, click your user account (in the top right corner), and select backups from the drop-down list.
  5. Under backups, navigate to location and click Configure.
  6. Choose Vultr Object Storage from the storage provider list.
  7. Enter the object storage bucket name.
  8. Select region, enter the access key and secret key copied earlier, and click save.
  9. Finally, navigate to Schedule and Retention and click Configure.
  10. Set a backup frequency in Days, and how often you plan to retain backups, then save your configuration.

All Cloudron backups will be automatically uploaded to your Vultr Object storage with .tgz file formats.

Conclusion

In this article, you installed Cloudron on a Ubuntu 20.04 server. You can install applications on the platform, create databases, add domains, set up certificates, and get automatic updates for all services without the need to fix errors and maintain services manually.

Want to contribute?

You could earn up to $600 by adding new articles.