UnluckyTech
HomeDiscordYoutube
  • Welcome
  • knowledge base
    • Guides
      • SSH
        • How to SSH on Windows 10/11
        • How to SSH on Linux
        • How to SSH on MacOS
      • VPS
        • DigitalOcean WebHosting
      • Local WordPress Environments
        • Get Started with WordPress on Docker
        • Integrate Github Actions with LocalWP
      • Virtual Private Servers (VPS)
        • CloudPanel & Digital Ocean
    • Documentation
    • Certification
      • COMPTIA N10-008 Network+
  • Links
    • Website
    • Youtube
    • Discord
    • Twitter
    • Donate
Powered by GitBook
On this page
  • Required Services
  • The Plan
  • Purchase Domain
  • Create a Droplet
  • Launch a Droplet
  • Choose Region
  • Choose an Image
  • Choose Plan
  • Authentication Method
  • Launch Droplet
  • Assign a Reserved IP
  • Install CloudPanel
  • Configure Cloudflare DNS
  • Access CloudPanel
  • Create Admin
  • Add a WordPress Website
  • Let's Encrypt
  • Set CloudPanel Domain
  • Conclusion
  1. knowledge base
  2. Guides
  3. Virtual Private Servers (VPS)

CloudPanel & Digital Ocean

Installation of CloudPanel on Digital Ocean with a few additional services. Including CloudFlare for DNS and Porkbun for the registration of domain.

Last updated 1 year ago

ME

In this guide, we'll walk through the process of installing and configuring CloudPanel on DigitalOcean. With CloudPanel, you can efficiently manage multiple websites using a single interface equipped with essential day-to-day maintenance tools.

Required Services

The Plan


Purchase Domain


Create a Droplet

Launch a Droplet

  1. In the left navigation, click on Droplets and then on Create Droplet.

Choose Region

Select the region closest to you for the lowest latency.

Choose an Image

Select Ubuntu 22.04 (LTS) x64.

Choose Plan

Pick the plan you prefer. You can increase or decrease the CPU and RAM at anytime but Storage can ONLY be increased.

Authentication Method

Launch Droplet

Enter a hostname and select Create Droplet.


Assign a Reserved IP

A Reserved IP (static ip) is recommended to have the same IP after changing the size of your Droplet. From your droplet...

  1. Select "Enable now" next to Reserved IP.

  2. Click Assign Reserved IP.


Install CloudPanel

Login via SSH to the Droplet

ssh root@IpAddress

Update & install prerequisites

apt update && apt -y upgrade && apt -y install curl wget sudo

Reboot your Droplet

reboot

Log back into the Droplet

ssh root@IpAddress

Run the Installer

curl -sS https://installer.cloudpanel.io/ce/v2/install.sh -o install.sh; \
echo "85762db0edc00ce19a2cd5496d1627903e6198ad850bbbdefb2ceaa46bd20cbd install.sh" | \
sha256sum -c && sudo CLOUD=do bash install.sh


Configure Cloudflare DNS

  1. From the left sidebar select DNS -> Records

  2. Select Add record and input these three records.

  • Type - A | Name - cloud | Target - IpAddress

  • Type - A | Name - @ | Target - IpAddress

  • Type - CNAME | Name - www | Target - DOMAIN

Make sure you set SSL/TLS encryption mode to FULL. If you do not then you will not be able to access your website.


Access CloudPanel


Create Admin


Add a WordPress Website

  1. select +ADD SITE -> Create a WordPress Site

  2. Enter the necessary credentials.

Site User - The user where all of wordpress files will be delegated to. You can use this user to ssh into the droplet and access these files.

Admin User - The user you will use to access and configure wordpress.

Multisite - WordPress has the ability to manage multiple websites. Change this if you wish to do such.

Once created save the credentials for the wordpress site.


Let's Encrypt


Set CloudPanel Domain

Admin Area -> Settings -> CloudPanel Custom Domain

Conclusion

Now you have CloudPanel installed and configured on a Droplet.

- Domain Registration

- DNS Provider

- Virtual Private Server (VPS)

We'll start by purchasing a domain from and direct it to for DNS management. Then, we'll create a droplet on and point our domain from to this droplet. will be installed on the droplet to manage everything, including websites, NGINX, Let's Encrypt certificates, and more. Essentially, all user traffic will be routed through to the droplet, where NGINX will handle redirection to the requested websites.

Create a new account on and search for the domain you are interested in purchasing.

On select "Add a site" and follow the prompts to connect your new domain.

Once provides the NameServers return back to and replace whats shown with the ones from .

Usually this takes 1-2 hours to update and at the most takes 24 hours. Once completed you will then use for DNS.

When deploying a Droplet, you have two options. You can either launch a droplet with preinstalled or manually install it yourself. I initially attempted to use the marketplace version, but encountered issues when needing to restart the server. Hence, in this tutorial, we'll opt for manual installation to avoid such interruptions.

NOTE: You can either continue following the guide or refer to the official documentation for the most up to date information.

Login to your account.

Either create a new password or and add an SSH Key.

We are using MySQL for our websites. If you require an alternative then refer .

While installs lets return back to and add a few DNS records that will point to our droplet.

Access as fast as possible to create the admin user. There is a small time window where bots can create the user.

You can now access via Browser: https://yourIpAddress:8443

Ignore the self-signed certificate warning and click on Advanced and Proceed to continue to .

Follow prompts to create the admin for . Note the admin is not a user created on the system it is only for .

Once logged into ...

makes it simple to issue Let's Encrypt certificates. Select your website and head over to the SSL/TLS tab. From there select Actions -> New Let's Encrypt Certificate.

Last thing we will do is make accessible from our domain. Since we already defined cloud within our DNS records we are going to use that to access cloud panel. From the panel...

Now you can access from your domain. https://cloud.domain.com

PorkBun
CloudFlare
Digital Ocean
PorkBun
Cloudflare
DigitalOcean
Cloudflare
CloudPanel
Cloudflare
PorkBun
Cloudflare
Cloudflare
PorkBun
Cloudflare
CloudFlare
CloudPanel
CloudPanel
here
Digital Ocean
create
here
CloudPanel
CloudFlare
CloudPanel
CloudPanel
CloudPanel
CloudPanel
CloudPanel
CloudPanel
CloudPanel
CloudPanel
CloudPanel
https://www.cloudpanel.io/docs/v2/introduction/
Flowchart