Loading...

DigitalOcean WordPress Setup and Migration Guide

Getting WordPress running on DigitalOcean is a different job from signing up for shared hosting. DigitalOcean hands you a raw Droplet, a private server you control completely, and leaves the WordPress install, the web server, SSL, and backups to you or to a managed layer sitting on top. This guide walks through both routes, shows how to migrate an existing site across without downtime, and flags the setup traps that quietly break WordPress on a fresh Droplet.

Two Ways to Run WordPress on DigitalOcean

There is no single DigitalOcean WordPress setup. The platform supports two practical routes, and the right one depends on how much server administration you want to own. The complete DigitalOcean hosting guide covers pricing and plan families in detail; this page focuses on the setup and migration process itself.

The self-managed Droplet route

You provision a Droplet from the DigitalOcean Marketplace, usually the pre-built WordPress image on Ubuntu, point your domain at the server, install a free Let's Encrypt SSL certificate, and then own every update, backup, and security patch from that point on. It is the cheapest option on paper, often a $10 to $12 a month 2GB Droplet for a small site, but it assumes you are comfortable with SSH, the command line, and basic Linux maintenance. DigitalOcean support will help with the server; it will not touch your WordPress install.

The managed route through Cloudways

The second route provisions the same DigitalOcean infrastructure through Cloudways, which installs and maintains the web server stack, server-level caching, daily off-site backups, and a one-click WordPress installer for you. You pay a modest markup over the raw Droplet price in return for skipping almost all of the command-line work. If you have run Cloudways before, the setup below will feel familiar; if you have not, it removes most of the steps the self-managed route requires.

Setting Up a New WordPress Site on DigitalOcean

A clean WordPress setup on a self-managed Droplet follows the same order every time. Rushing it is where most first-time problems start. Our step-by-step guide to installing WordPress on a DigitalOcean Droplet walks through each step from first login to a live site.

  1. Create the Droplet. Pick a region close to your visitors, choose the WordPress Marketplace image or a plain Ubuntu image, and add an SSH key during creation rather than relying on a root password.
  2. Point your domain. Add an A record at your registrar pointing to the Droplet's IP address, or set up DigitalOcean's name servers if you want to manage DNS from the dashboard.
  3. Secure the site with SSL. Install a free Let's Encrypt certificate and confirm it auto-renews. A certificate that silently expires in 90 days is one of the most common self-managed failures.
  4. Finish the WordPress install. Complete the five-minute install through wp-admin, set a strong admin password, and remove the default sample content.
  5. Turn on backups before launch. Enable weekly Droplet backups or a plugin-based daily backup to off-site storage. Do this before you put real traffic on the server, not after the first problem.

On the managed route, Cloudways collapses most of these into a single provisioning screen. Its step-by-step Cloudways setup walkthrough covers the managed equivalent, with the server stack, caching, and backups configured for you.

Migrating an Existing WordPress Site to DigitalOcean

Moving a live site is riskier than starting fresh because real traffic and email are on the line. The safe approach separates the copy from the switch, so you can test the new server fully before any visitor sees it. Our full guide to migrating an existing WordPress site to DigitalOcean walks through each method in order.

Before you migrate: a safety checklist

  • Take a full backup of the current site, files and database, and download it somewhere off the old host.
  • Lower your domain's DNS TTL to 300 seconds at least a day ahead, so the final switch propagates in minutes rather than hours.
  • Note your current PHP version and WordPress version, and match them on the new Droplet to avoid plugin breakage.
  • List every email address running on the domain, since a server move can interrupt mail if DNS is changed carelessly.

The migration itself

You have three realistic options. A manual migration copies the files over SFTP and imports the database through phpMyAdmin or WP-CLI, which is free but fiddly. A migration plugin such as All-in-One WP Migration or Duplicator packages the whole site into one file you restore on the Droplet. The managed route is simplest: Cloudways ships a free migration plugin that moves the site for you, and the same process used to migrate a WordPress site to Cloudways applies when the underlying server is a DigitalOcean Droplet. Whichever you choose, test the copied site using your computer's hosts file before you change the live DNS record.

Three Setup Traps That Catch People Out

These are the problems that do not show up in the DigitalOcean dashboard and are missed by most setup tutorials.

  • Outbound email is blocked by default. DigitalOcean blocks SMTP port 25 on new accounts to fight spam, so WordPress password resets and WooCommerce order emails fail silently on a raw Droplet. The fix is to send mail through an authenticated service using an SMTP plugin, not the server itself.
  • You cannot move a Droplet between regions. Changing a Droplet's data centre means taking a snapshot and restoring it as a new Droplet with a new IP address. Pick the region nearest your audience at creation time, because undoing it later means another DNS change.
  • SSL does not renew itself unless you set it up to. On a self-managed Droplet, Let's Encrypt certificates last 90 days. Confirm the auto-renewal job is in place on day one, or the site will start throwing security warnings a quarter later.

Which Route Is Right for You?

Choose the self-managed Droplet if you are comfortable in a terminal, want the lowest possible monthly cost, and treat running the server as part of the job. Choose the managed Cloudways route if you would rather spend your time on the website than on Linux administration, or if business email and uptime cannot afford a learning curve. For the performance benchmarks and support detail behind that decision, read the full DigitalOcean review, and the comparison of how Cloudways differs from regular hosting.

Ready to start? You can provision a managed DigitalOcean Droplet through Cloudways and have WordPress installed in a few minutes, or sign up at DigitalOcean directly, claim the new-account credit, and build a Droplet from the WordPress Marketplace image. Either way, set up backups before launch day.

Frequently Asked Questions

Yes. You can install WordPress yourself on a DigitalOcean Droplet using the WordPress Marketplace image, or provision a managed DigitalOcean Droplet through Cloudways, which installs and maintains WordPress for you. Both run on the same underlying DigitalOcean infrastructure.
It is a strong fit if you want predictable pricing and control and are comfortable managing a server, or if you use a managed layer like Cloudways on top. It is a poor fit if you want bundled support, email, and automatic WordPress maintenance with no server work at all.
A self-managed 2GB Droplet suitable for a small site runs about $10 to $12 a month, plus backups and any control panel you add. A managed DigitalOcean plan through Cloudways starts a little higher but includes caching, backups, and support in the price.
Back up the site first, lower your DNS TTL a day ahead, copy the site to the Droplet with a migration plugin or Cloudways' free migrator, test it through your computer's hosts file, and only then switch the live DNS record. Separating the copy from the switch is what avoids downtime.
DigitalOcean blocks SMTP port 25 on new accounts to reduce spam, so mail sent directly from the server fails. Send WordPress email through an authenticated SMTP service using a plugin such as WP Mail SMTP instead of relying on the server's own mail function.
Some of the links on this blog are sponsored links
Newsletter
Stay Ahead in Hosting

Expert hosting tips, reviews, and exclusive deals — delivered straight to your inbox. Join thousands of smart webmasters.

You're in! Thanks for subscribing.
Something went wrong — please try again.
No spam, ever. Unsubscribe in one click.
Top