Setup & site building · Guide
How to Install WordPress on DigitalOcean (Step by Step)

Short answer
Create a Droplet from the WordPress 1-Click app in the DigitalOcean Marketplace, point your domain at its IP address, then log in over SSH so the setup script can ask for your domain, admin details and site title. Accept the free Let's Encrypt SSL offer, sign in to wp-admin, and keep the server updated and backed up yourself.
Key takeaways
- The WordPress 1-Click Droplet is the fastest way to get WordPress on DigitalOcean.
- A Droplet is unmanaged, so updates, backups and security are your job.
- Point your domain at the Droplet before running the SSL step.
- Use SSH keys and avoid admin as a username.
- Add page caching and resize the Droplet if memory stays high.
How do you install WordPress on DigitalOcean?
The quickest way is to create a Droplet from the WordPress 1-Click app in the DigitalOcean Marketplace, then log in over SSH once to finish a short setup script.
That script asks for your domain, admin email, username, password and site title. After that, WordPress is running on your own virtual server.
DigitalOcean's WordPress Marketplace page describes what the image includes. The rest of this guide walks through each step, plus the manual route if you prefer to build the server yourself.
Is DigitalOcean a good fit for WordPress?
DigitalOcean suits people who are comfortable with a bit of server work, because a Droplet is an unmanaged virtual server where you handle updates, backups and security yourself.
That is the main trade-off. You get root access, predictable monthly pricing and full control over PHP, the web server and caching.
In return, nobody patches the operating system for you. If you want to understand the difference first, our explainer on what a VPS is and whether you need one for WordPress covers it in plain terms.
| Option | Who manages the server | Best for |
|---|---|---|
| WordPress 1-Click Droplet | You | Most people who want a fast start |
| Manual LAMP or LEMP install | You | Users who want full control of every package |
| Managed WordPress host | The host | Owners who never want to touch a terminal |
If the right-hand column describes you, compare shared, VPS and managed hosting before you sign up.
What do you need before you start?
You need a DigitalOcean account with a payment method, a domain name you can edit DNS for, and an SSH client such as Terminal on macOS or Linux, or PowerShell on Windows.
A domain is not strictly required to test the server. You can open the site on its IP address first, but you will want a real domain before you add SSL.
It also helps to set up an SSH key before creating the Droplet. DigitalOcean lets you add a key during creation, which is safer than relying on a root password.
Have a password manager ready too. You will create a WordPress admin password during setup, and it should be long and unique.
Step 1: How do you create a WordPress Droplet?
In the DigitalOcean control panel, open the Marketplace, search for WordPress, choose the WordPress app and click to create a Droplet from it.
You then pick the usual Droplet options:
- Region: choose the data centre closest to most of your visitors.
- Size: a Basic Droplet with at least 1 GB of memory is a sensible starting point for a small site.
- Authentication: choose SSH key if you can, or a strong root password.
- Hostname: give it a name you will recognise, such as your domain.
Prices change, so check DigitalOcean's pricing page for the current monthly cost of each size. You can resize a Droplet later if the site grows.
Click Create Droplet and wait a minute or two. When it finishes, copy the Droplet's public IPv4 address from the dashboard.
Step 2: How do you point your domain at the Droplet?
Create an A record for your domain that points to the Droplet's IP address, and another A record or CNAME for the www version if you plan to use it.
You can manage DNS at your registrar or move it to DigitalOcean's own DNS. Either works, as long as only one place is in charge of the records.
Do this early. DNS changes can take a while to spread, and the SSL step later needs the domain to resolve to your server.
Our guide on pointing a domain to WordPress hosting explains A records, nameservers and common mistakes in more detail.
Step 3: How do you run the WordPress setup script?
Open your terminal and connect with ssh root@your_droplet_ip, replacing the placeholder with your Droplet's address. On first login, an interactive setup script starts automatically.
ssh [email protected]
The script asks for a few details in turn:
- The domain name the site will use.
- Your admin email address.
- The WordPress admin username.
- The admin password.
- The site title.
Avoid admin as the username. It is the first name attackers try, and a less obvious username adds a small extra hurdle.
DigitalOcean's tutorial on using the WordPress one-click install shows these prompts with screenshots if you want to compare.
Step 4: How do you add a free SSL certificate?
When the setup script offers to configure Let's Encrypt, answer yes, and it uses Certbot to issue a free certificate and switch the site to HTTPS.
This only works if your domain already points to the Droplet. If DNS has not updated yet, skip this step and run Certbot later.
The Certbot instructions cover running it by hand on Ubuntu with Apache or Nginx. Certificates renew automatically through a scheduled task that Certbot sets up.
Once HTTPS works, check Settings > General in WordPress. Both the WordPress Address and Site Address should start with https.
For a broader look at certificates, see our guide on installing an SSL certificate on WordPress.
Step 5: How do you log in and finish setting up WordPress?
Visit yourdomain.com/wp-admin, sign in with the username and password you chose in the script, and work through the basic settings.
A short first-day checklist:
- Set your time zone and site language under Settings > General.
- Pick a permalink structure under Settings > Permalinks, such as Post name.
- Delete the sample post, sample page and any unused themes.
- Install a theme and only the plugins you actually need.
Update everything that shows an update badge. The image may ship a slightly older version of WordPress or plugins than the latest release.
Step 6: How do you secure and maintain the server?
Keep Ubuntu updated, keep the firewall on, use SSH keys, and set up automatic backups, because on an unmanaged Droplet nobody else will do these jobs for you.
Run system updates on a regular schedule:
apt update && apt upgrade -y
The 1-Click image enables a basic firewall that allows SSH and web traffic. Leave it in place, and only open extra ports when you know why you need them.
For backups, you have two layers to consider:
- DigitalOcean Droplet backups, a paid add-on that snapshots the whole server on a schedule.
- A WordPress backup plugin, which saves files and the database to off-site storage you choose.
Using both is reasonable. Our guide to the 3-2-1 backup rule explains why one copy in one place is never enough.
The WordPress hardening guide on developer.wordpress.org lists more server and file permission tips worth reading once.
How do you install WordPress manually instead?
Create a plain Ubuntu Droplet, install a web server, PHP and MySQL or MariaDB, create a database and user, download WordPress, and run the browser installer.
This takes longer, but you choose every component. Many people use Nginx with PHP-FPM, while the 1-Click image uses Apache.
The rough order looks like this:
- Create an Ubuntu LTS Droplet and log in as root.
- Create a non-root user with sudo rights and set up the firewall.
- Install Apache or Nginx, PHP with the common extensions, and MySQL or MariaDB.
- Create an empty database and a database user with a strong password.
- Download WordPress from wordpress.org into your web root.
- Visit the domain and complete the familiar installer screen.
The official WordPress installation guide lists the requirements and the classic five-minute install. Check the WordPress requirements page for the recommended PHP and database versions before you install packages.
What problems might you run into?
The most common issues are DNS that has not updated yet, a failed SSL step, file permission errors when installing plugins, and a server that runs out of memory on the smallest Droplet size.
Here is how to handle each one:
- SSL fails during setup: wait until the domain resolves to your IP, then run Certbot again.
- Site shows the IP instead of the domain: update the WordPress Address and Site Address in Settings > General, or in wp-config.php.
- Plugins ask for FTP details: the web server user does not own the WordPress files. Fix ownership so the web server user can write to wp-content.
- Random 500 errors under load: the Droplet may be short of memory. Add swap or resize to a larger plan.
For error pages, our guide on fixing the 500 internal server error walks through log checks and plugin conflicts.
How do you make the site fast on a Droplet?
Add page caching, keep PHP on a current supported version, and consider a CDN, because a small Droplet serves cached pages far more easily than uncached PHP requests.
A caching plugin is the single biggest win on a modest server. Object caching with Redis can help busier sites with logged-in users or WooCommerce.
Put the site behind a CDN such as Cloudflare if your visitors are spread across regions. Our guide on setting up Cloudflare for WordPress covers the DNS and SSL settings that matter.
Finally, watch the Droplet's graphs in the DigitalOcean dashboard. If CPU or memory stays high after caching, it is time to resize rather than keep tuning.
Frequently asked questions
Is the WordPress 1-Click app on DigitalOcean free?
The Marketplace image itself costs nothing extra, but you pay the normal monthly price for the Droplet it runs on. Optional extras such as Droplet backups, extra storage or a load balancer are billed separately, so check the pricing page before choosing a size.
Which Droplet size should I choose for WordPress?
A Basic Droplet with at least 1 GB of memory suits a small blog or brochure site. WooCommerce stores, membership sites and sites with many plugins usually need more memory. You can resize later from the dashboard, so start small and watch the usage graphs.
Does DigitalOcean back up my WordPress site automatically?
Not by default. Droplet backups are a paid add-on you switch on per Droplet, and they snapshot the whole server. Many owners also run a WordPress backup plugin that sends copies to separate cloud storage, so they can restore a single site quickly.
Can I host more than one WordPress site on one Droplet?
Yes, if you configure separate virtual hosts, databases and folders for each site, or use a server control panel that does this for you. The 1-Click image is designed around one site, so adding more takes manual server work and careful resource planning.
Do I need to know Linux to use DigitalOcean for WordPress?
You need basic comfort with SSH and a few commands for updates and troubleshooting. The 1-Click setup keeps the first install simple, but ongoing maintenance is your job. If that sounds stressful, a managed WordPress host may suit you better.
Sources
- WordPress 1-Click App DigitalOcean Docs
- How To Use the WordPress One-Click Install on DigitalOcean DigitalOcean Docs
- How to install WordPress WordPress Developer Resources
- Server requirements WordPress.org
- Certbot instructions Electronic Frontier Foundation
- Hardening WordPress WordPress Developer Resources
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


