We may earn a commission if you sign up through links on this site, at no extra cost to you. Full disclosure.

How to Run WordPress on DigitalOcean

Managed WordPress hosting starts around $25–30/mo. A DigitalOcean Droplet that runs the same site starts at $6. The difference isn't a trick — it's the work you're agreeing to do yourself. This guide covers what it actually costs, how to size the server, how the setup works, and what lands on your plate afterwards.

The short version

If you can use a terminal, or want to learn, DigitalOcean will run a small WordPress site well for under $10/mo including backups. If the phrase "SSH into your server" makes you uneasy, the honest answer is that managed hosting is worth the money — an unpatched WordPress server is a real liability, not a theoretical one.

What it actually costs

The advertised $4/mo Droplet has 512 MiB of RAM, which is below WordPress's minimum. Here's what you'd realistically pay, including automated backups at 20% of the Droplet price.

SetupDroplet+ weekly backupsMonthly total
Small blog, low traffic$6 (1 GB / 1 vCPU)$1.20$7.20
Established blog$12 (2 GB / 1 vCPU)$2.40$14.40
Production recommendation$18 (2 GB / 2 vCPUs)$3.60$21.60
WooCommerce or several sites$24 (4 GB / 2 vCPUs)$4.80$28.80

Daily backups cost 30% instead of 20%. Billing is per-second with a monthly cap, so there's no contract and no renewal price increase — the price you see is the price in year three. If you want support with a response target measured in hours rather than a day, add $24/mo for the Developer plan or $99/mo for Standard.

How to size your Droplet

Minimum

1 vCPU, 1 GB RAM, 25 GB storage. This is DigitalOcean's stated floor for the WordPress image — the $6/mo Droplet. Fine for a personal blog with modest traffic and a handful of plugins.

Recommended for production

2+ vCPUs, 2+ GB RAM, 50+ GB storage — the $18/mo Droplet. Worth it once the site earns money, runs a page builder, or has plugins doing real work.

When to size up

Requirements scale with traffic and plugins, not page count. Watch memory and CPU in the control panel's monitoring graphs; resizing a Droplet takes a reboot, not a migration.

Setting it up, step by step

DigitalOcean's Marketplace WordPress image does most of the work. Budget about half an hour end to end, most of which is waiting for DNS.

1. Deploy the 1-Click image

Create a Droplet from the Marketplace WordPress image rather than a bare Ubuntu install. Choose a datacenter close to your readers, and add an SSH key during creation — it's meaningfully more secure than a root password. If you'd rather not run MySQL on the same box, tick Add a Database to provision a managed MySQL cluster at the same time.

2. SSH in and let the setup script run

Connect with ssh root@your-droplet-ip. The setup script launches automatically on first login and asks for your email, admin username, password, and site title. It then requests an SSL certificate, configures the web server for HTTPS, and installs the WP-Fail2Ban security plugin. It takes two to three minutes.

3. Point your domain at it

Add a DNS A record for your domain pointing at the Droplet's IP, wait for it to propagate (usually 5–60 minutes), then run /root/wp_setup_domain.sh. That swaps the IP-based certificate for a real domain certificate, updates your WordPress URLs, and sets up the HTTP→HTTPS redirect.

4. Turn on backups before you need them

This is the step people skip. Automated backups are off by default and cost 20–30% of the Droplet price. Enable them in the control panel on day one. If you attached a managed database, also add your Droplet's IP to the cluster's Trusted Sources — it isn't added automatically.

What's on the server

Worth knowing what you've inherited, because you're the one maintaining it.

ComponentWhat it does
Ubuntu 24.04 LTSThe operating system. Long-term support, so security updates are available — but you have to apply them.
CaddyWeb server. Obtains and renews Let's Encrypt certificates automatically, so SSL is genuinely hands-off.
PHP 8.3 FPMRuns WordPress. You'll be responsible for moving to newer PHP versions over time.
MySQL 8.0The database, running locally unless you attached a managed cluster.
WP-CLICommand-line WordPress management. wp core update and wp db export are the two you'll use most.
WP-Fail2Ban + UFWBlocks repeated failed logins, and a firewall allowing only SSH, HTTP, and HTTPS.

The work you're taking on

Handled for you

  • SSL certificate issuance and renewal, via Caddy.
  • Initial hardening: firewall rules and login-attempt blocking come pre-configured.
  • Hardware failure and network uptime, backed by a 99.99% per-Droplet SLA.
  • Automated backups, once you switch them on.

Yours to do

  • Operating system security updates — the single most important recurring task.
  • WordPress core, theme, and plugin updates, and fixing whatever a bad update breaks.
  • PHP version upgrades as older versions stop receiving security fixes.
  • Caching and performance tuning. Nothing is optimised for WordPress out of the box.
  • Uptime monitoring. Nobody will tell you the site is down unless you set that up.
  • Malware cleanup if the site is compromised. Support covers the server, not your WordPress install.

Is this right for you?

Yes, if you're comfortable with a terminal or genuinely want to learn, your site is a blog or portfolio or small business site, and an hour of downtime would be irritating rather than expensive. The savings over managed hosting are real and permanent.

Probably not, if the site is your income, you'd be learning Linux under pressure during an outage, or you simply don't want a recurring maintenance chore. Paying $25–30/mo for someone else to handle patching and monitoring is a reasonable trade, and there's no shame in making it.

Worth knowing: managed platforms exist that run on DigitalOcean's own infrastructure and handle the maintenance for you at a markup. If you want the servers described here but not the sysadmin work, that middle option is out there — we don't currently review it.

FAQ

Can I move an existing WordPress site to DigitalOcean?

Yes, but you do it yourself — there's no migration service. A plugin like Duplicator or All-in-One WP Migration handles most sites; larger ones are usually a manual database export plus an rsync of wp-content.

How much traffic can a $6 Droplet handle?

More than most people expect for a cached, mostly-static blog, and far less than you'd hope for an uncached WooCommerce store. Traffic matters less than what your plugins do on each request. Add caching before you add RAM.

What happens if I break something?

You restore from a backup, which is why enabling them first matters. The free support tier targets a reply in under 24 hours and covers infrastructure, not your WordPress install — a white screen after a plugin update is your problem to solve.

Do I need the managed database option?

Not for a single small site — local MySQL is fine and free. A managed cluster is worth it when you want automatic database backups and failover, or when you're running several sites and want the database separated from the web server.

Will the price go up later?

Not the way shared hosting renewals do. DigitalOcean bills per second against a monthly cap at published rates, with no promotional pricing to expire. Your bill changes when you change your resources.

Droplets from $4/mo

$6/mo is the practical starting point for WordPress. Per-second billing, no contract.

Get started with DigitalOcean

Affiliate link — we may earn a commission at no extra cost to you.

Read our full DigitalOcean review →
← All DigitalOcean guides