Launching WordPress at Digital Ocean With ServerPilot

Final product image
What You'll Be Creating

What Is ServerPilot?

ServerPilot.io is a cloud-based hosting control panel akin to cPanel and its alternatives. Unlike others that attempt to work generically with any host, ServerPilot's chosen to focus exclusively on enhancing Digital Ocean

Once you've created a droplet (instance) at Digital Ocean, ServerPilot will configure it programmatically and provide you a graphical user interface for basic management features. It helps you set up users and databases while maintaining a firewall and regular security updates. Overall, it simplifies the complexities of running a server for anyone who values their time (that's all of us, right?)

If you haven't read Building an App Image to Resell at Digital Ocean (also at Tuts+), this might be a good time to review it. That tutorial walks you through building out a WordPress instance on Digital Ocean step by step. You can compare that guide to this one.

In this tutorial, I'll guide you through launching a WordPress site using ServerPilot and Digital Ocean.

Digital Ocean indeed is a great hosting platform to build on, one which I've covered in detail this past year:

How Much Does ServerPilot Cost?

ServerPilot is free in its basic form. If you want enhanced features and real time analytics, it's $10 per month. Premium accounts with additional support, statistics and logs are $49 per month.

Server Pilot Pricing Plans

Of course, in addition to your ServerPilot fees, you'll also be paying hosting fees to Digital Ocean which begin at $5 monthly (hourly options available).

Getting Started With Digital Ocean

Assuming you already have a Digital Ocean account, I'm going to walk you through the process of creating a droplet, signing up for ServerPilot and installing WordPress.

If you want a visual guide to signing up with Digital Ocean, you can review signing up and setting up generic instances at Digital Ocean here

Creating Your Droplet

First, let's create a droplet. Within your account at Digital Ocean, click the Create button:

Digital Ocean Create your droplet

I'll call mine image.publishingwordpress.com but you can name yours anything generic. I'll use the 512 MB image size:

Digital Ocean Droplet Hostname

Make note of the region you choose as your client will only be able to instantiate your image in the same region. However, you can also transfer the region of your snapshot if need be (with some downtime).

Digital Ocean Select a Region

Under Distributions, choose Ubuntu 14.04 and click Create Your Droplet:

Digital Ocean Select Distribution Ubuntu 140x

Digital Ocean will begin creating your droplet:

Digital Ocean Creating Your Droplet Progress Bar

When it's done, you'll see this page:

Digital Ocean Droplet Information Page

Note: Please ignore my specific IP addresses in these examples as these images were created at different times or in repetition and have different addresses.

You'll also receive an email like the one below:

Digital Ocean Droplet Announcement Email

Configure Your Domain Name and DNS

Now, you can visit your domain registrar and modify your DNS records to point your domain or sub-domain to the new IP address. In my case, I'm pointing the A record for image.publishingwithwordpress.com to 107.170.171.26. Yours will differ, obviously.

Configure Your Domain Name and DNS

Awesome! Now, you're ready to try ServerPilot.

Sign Up At ServerPilot

Visit the ServerPilot.io website and click Sign Up:

Server Pilot Sign Up

Connect Your Server

You should see something like this empty dashboard:

Server Pilot Servers Dashboard

Click + Connect Server and specify the domain of your Digital Ocean droplet:

Server Pilot Connect a Server

Install ServerPilot on Your Droplet

You'll be given instructions that need to be run in your droplet by your root Digital Ocean account:

Server Pilot Installation Instructions

Using the instructions you received via email from Digital Ocean, log in via SSH to your server. You'll be asked to set a new root password.

Then copy and paste the ServerPilot instructional code (from your ServerPilot dialog box—not exactly like the example below):

ServerPilot will then install itself on your server, connecting your Digital Ocean droplet to its own managed service.

It will appear something like this:

When you return to your ServerPilot dashboard, you should see something like this:

Server Pilot Your Connected Servers

Create a New App

Next, click on your domain name, and it will ask you to create a New App:

Server Pilot Create a New App

Click +New App and fill in the information for WordPress as I have done below (using your domain name). The App Name is just a friendly name—you could name it My Blog instead.

Server Pilot New App Settings for WordPress

Then, click Create App. You should see app settings like this:

Server Pilot Your WordPress App Settings

Note: If you click around on the navigation, you may notice that Stats, Logs and SSL are only available to business plan customers.

Now, we're ready to install WordPress on your server. You can follow along below or refer to the community guide at ServerPilot here.

Installing WordPress

Create a Password for ServerPilot SSH

First we need to configure a ServerPilot aware SSH account to log in with. Click serverpilot above to establish an SSH password for the serverpilot user. 

Note: Eight characters is the minimum length required for your password.

Server Pilot Set Password for SSH

Then you can log in to your droplet again but this time using the serverpilot user and password:

Install WordPress via SSH

Copy and paste the following commands to download and uncompress the latest WordPress code:

Configure Your WordPress Site

Visit your domain name and you'll be able to configure WordPress via the web user interface as you're used to. To begin, we'll choose a language:

WordPress Set Language

Then, WordPress will let us know what information it requires:

WordPress What Youll Need

Create Your Database With Help From ServerPilot

Let's return to our App page in ServerPilot to create a new database. You can name it whatever you wish. ServerPilot will provide possible usernames and passwords:

Server Pilot Create MySQL Database

Return to your website and enter the chosen ServerPilot database settings:

WordPress Database Connection Details

WordPress will test your database and ask to Run the Install:

WordPress Run the Install

You'll be asked to provide a WordPress Site Title and credentials:

WordPress Site Title and Credentials

Success:

WordPress Installation Success

Visit Your New WordPress Site

Log in with your chosen credentials and you should see the generic WordPress dashboard:

WordPress Your Dashboard

And your site will appear like this:

WordPress Your New Website

If you return to ServerPilot and browse the settings, you'll notice that it's managing the security updates and firewall for you:


Server Pilot Security Updates and Firewall Settings

Certainly there are a lot of GUI steps but the process is quite simple. You could compare this to setting up a site with a managed host such as WPEngine or self-hosting WordPress. ServerPilot currently does not configure a caching solution such as W3 Total Cache with Varnish, as my self-host instructions do.

Either way, ServerPilot certainly makes starting new WordPress sites incredibly easy.

What's Next?

Now you know how to build a cloud-based instance of an application like WordPress on Digital Ocean using a managed control panel. If you want to dive in and do deeper configuration of your new site, check out my list of recommended WordPress plugins.

I hope you've found ServerPilot interesting and useful. I think it's a service with tremendous potential. I've had a couple of conversations with their CEO Justin Samuel and encouraged him to integrate WordPress installation directly into their dashboard.

If you'd like to know when my next tutorial arrives, follow me @reifman on Twitter or check my instructor page

I welcome feature and topic requests. You can post them in the comments below or email me at my Lookahead Consulting website.

Related Links

Tags:

Comments

Related Articles