How to host WordPress on your own VPS.
To host WordPress on a VPS you need Nginx, PHP, a MySQL or MariaDB database, the WordPress files and an HTTPS certificate. ServerDog sets these up from your Mac: it installs the stack on a fresh Ubuntu server, creates the site and its database, downloads the latest WordPress and writes wp-config.php. You finish the install in your browser.
By ServerDog. Updated .
Key facts
- WordPress needs Nginx, PHP and a MySQL or MariaDB database. ServerDog installs them on a fresh Ubuntu 24.04 or 26.04 server in about 8 to 12 minutes.
- ServerDog downloads the latest WordPress from wordpress.org and writes wp-config.php. The keys and salts are generated on your Mac.
- You choose the site title and admin account in the browser. Until you do, anyone who opens the site can, so do it straight away.
- WordPress sites run without zero-downtime releases, because WordPress updates its own files.
- ServerDog backs up the database to your own bucket. It does not back up uploaded files.
Before you start
- A Mac running macOS 15 or later, with ServerDog installed.
- A Hetzner or DigitalOcean account, or a fresh Ubuntu 24.04 or 26.04 server from any provider.
- A domain whose DNS you can change.
1. Set up the server
Choose Add Server and either create a server at a provider or add one by its address. PickApp server, a PHP version, and MySQL or MariaDB as the database. The WordPress preset is offered only on servers that run one of those two.
ServerDog installs Nginx, PHP and the database and sets up the firewall. Setup usually takes 8 to 12 minutes and runs on the server, so you can close the window while it works.
2. Create the site
Choose New Site and the WordPress preset. Type the domain and pick the PHP version. A database is required, so ServerDog creates one with its own user and a 32-character password, which it keeps in your Mac’s Keychain. The user can reach that database and nothing else.
To keep sites apart, turn on Isolate this site. The site then runs as its own Linux user, with its own PHP-FPM pool, so its PHP cannot read another site’s files.
3. Let ServerDog download WordPress
The first deploy downloads the latest WordPress from wordpress.org into the site’s folder. ServerDog also writeswp-config.php, with:
- the database name, user and password from the previous step;
- all eight keys and salts, each 64 random characters generated on your Mac;
FS_METHODset todirect, so updates and plugins install without FTP.
If wp-config.php already has content, ServerDog leaves it alone.
4. Point the domain and turn on HTTPS
Create a DNS record for your domain that points at the server’s IP address. ServerDog waits for DNS, requests a free Let’s Encrypt certificate and shows how long it is valid. The server renews it from then on.
5. Finish the install in your browser
Open the site. WordPress asks for the site title and the admin account. Do this straight away: until the admin account exists, anyone who opens the site can create it.
6. Keep WordPress updated
WordPress updates itself. PHP runs as the user that owns the files, so core, plugin and theme updates install from the dashboard. Later deploys from ServerDog don’t touch WordPress’s files. Uploads of up to 64 MB are accepted by default.
7. Back up the database
Under Backups, add a plan that dumps the database to a bucket you own at Amazon S3, Cloudflare R2, Backblaze B2, DigitalOcean Spaces or any S3-compatible storage. Plans run hourly, nightly, weekly or on your own schedule, and the server runs them itself, so your Mac doesn’t need to be on.
Backups cover the database only. Your wp-content/uploads folder is not included, so back it up separately, for example with your provider’s snapshots.
What doesn’t ServerDog do for WordPress?
- It does not create the admin account. You do that in the browser.
- There are no release folders and no rollback for WordPress sites.
- It does not install WP-CLI, set up multisite or configure a cache plugin.
- It does not back up files or restore backups for you.
Go deeper
Questions
Can I host WordPress on my own VPS?
Yes. WordPress needs a web server such as Nginx, PHP, and a MySQL or MariaDB database. ServerDog installs all three on a fresh Ubuntu server, creates the site and its database, downloads WordPress and writes wp-config.php.
Does ServerDog install WordPress for me?
It downloads the latest WordPress from wordpress.org, creates the database and writes wp-config.php with the database settings and freshly generated keys and salts. You finish in the browser by choosing the site title and admin account.
Can I host several WordPress sites on one VPS?
Yes. Each site gets its own folder, database, database user and PHP-FPM pool. You can also give a site its own Linux user, so one site’s PHP cannot read another’s files.
Which database does WordPress use with ServerDog?
MySQL or MariaDB. The WordPress preset is offered only on servers that run one of them, because WordPress does not support PostgreSQL.
How are WordPress updates handled?
By WordPress itself. PHP runs as the user that owns the files, so core, plugin and theme updates install from the WordPress dashboard without FTP. ServerDog’s later deploys leave WordPress’s files alone.
Do WordPress sites deploy with zero downtime in ServerDog?
No. WordPress updates its own files in place, so the WordPress preset runs without release folders and without rollback. Zero-downtime deploys are for sites deployed from a Git repository.
Does ServerDog back up WordPress?
It backs up the database on a schedule to an S3-compatible bucket in your own account. It does not back up files, so your uploads folder needs its own backup, for example a provider snapshot.
Last updated by ServerDog.