How to Deploy CloudPages on DigitalOceal?
The goal of this article is to show you how to install CloudPages on a DigitalOcean droplet. DigitalOcean is a cloud computing vendor that offers an Infrastructure as a Service (IaaS) platform for software developers. And CloudPages is a SaaS-based platform to manage and your WordPress site and web applications in an easy way.
To get started, you will need to buy a server from Digital Ocean, and then you will be able to deploy CloudPages on that server. I will show you step by step how to do both.
Step-1: Get Digital Ocean Server
If you do not already have an account on DigitalOcean, you can register for free, and if you do already have an account, click on the Sign In button to sign in.
To create a new server on the digital ocean, click the button in the top right corner.
On the Create tab, you will see a variety of options. Click on Droplets.
Create a server in this step.
Step-1: Choose an image
You must choose Ubuntu 20.04 LTS x64 in this section since CloudPages only works with Ubuntu.
Step-2: Choose a plan
The price of the plan will depend on the system specification, so choose a plan that you think will be best for your sites.
Step-3: Add block storage
For extra storage, you may choose this step if you wish.
Step-4: Choose a data center region
In this step, select location closest to your end-users
Step-5: VPC Network
Go with defaults in this section
Step-6: Select additional options
Go with defaults in this section
At the top, you will see a radio button for the SSH key and the password. Choose the SSH key, as it is more secure. The previously added SSH keys will now appear on your screen. You can select one or select all from here, and if you don’t want to add a key, click on the New SSH key button.
Alternatively, if you don’t have a key or don’t want to set up key-based authentication, you can select the password option.
Step-8: Finalize and create
In this step, leave these options as default and click on Create Droplet button.
By clicking on the Create Droplet button, you will be taken to the dashboard where a new droplet will be created. You can see your server is created and listed on the Dashboard once the process is complete.
Please note the IP Address of your droplet as this will be needed in the next step.
Step-2: Deploy CloudPages
To start, you’ll need to sign up for an account on CloudPages, if you do not already have one. If you already have an account, please click Login, on which you provide your credentials, and then click Sign In.
Once you have logged in, now follow the step-by-step procedure.
Step-1: Create a project
You will be redirected to the dashboard after logging in. On the top bar, click Create New Project.
Once you click the Create New Project button, you will be redirected to a page where an input box will ask for the Project Name.
Choose a name for your project and click on Create Project to move on.
If this is your first project, you will automatically get 7 days free trial, you can continue to deploy servers.
Step-2: Deploy Server
On the Dashboard page, select the project on which you want to deploy the server.
Then Click on Deploy Server on the sidebar.
Once you open the deploy server page you can see these 3 input boxes, provide the required data and click on Deploy Server.
- Chose server type if you have LiteSpeed Enterprise license then chose that one otherwise chose OpenLiteSpeed
- Provide your server name anything you want.
- Provide Your server IP, this should be a valid public static IP.
After providing all the details click Deploy Now.
Step 3: Login to your server SSH as root
Log in to your server using SSH. This is the server on which you wish to deploy it. Must be logged in as root.
Then copy and paste this command into the terminal
The following installation process will be triggered in your browser using the command you pasted on the terminal.
After some time you can see CloudPages agent is successfully installed on your server.
Step 4 – Server Dashboard
Once your deployment is done you will be redirected to the server dashboard.