How to Self-Host Ghost and Connect Your Domain
Self-hosting Ghost means running the open-source publishing platform on your own server, which costs nothing for the software but needs a VPS with at least 2GB RAM. Setup takes about 45 minutes if your DNS is already pointing somewhere sensible.
Ghost also offers managed hosting starting around $9 per month. That’s the fair comparison — the question isn’t free versus paid, it’s whether you want to own the server.
Is self-hosted Ghost actually free?
Software: yes, MIT licensed, no limits on posts or members.
Server: no. A 2GB VPS from DigitalOcean, Hetzner, or Vultr runs $6-12 per month. Hetzner is the cheapest reliable option at around €4.50 for 2GB in the EU. DigitalOcean’s $12 tier is the easiest starting point if you want one-click snapshots.
Email: potentially yes, but plan carefully. Ghost needs SMTP for member signups and password resets. Mailgun’s free tier has shrunk repeatedly; at current limits you get around 100 emails a day, which is tight for a growing list.
So the honest floor is $6-12 per month, not zero. Still cheaper than managed Ghost Pro at scale.
What are the server requirements?
| Resource | Minimum | Comfortable |
|---|---|---|
| RAM | 1GB | 2GB |
| Disk | 20GB | 40GB SSD |
| CPU | 1 vCPU | 2 vCPU |
| Node.js | 18.x (Ghost 5.x) | latest LTS |
| Database | MySQL 8 | MySQL 8 |
The 1GB minimum is technically true and practically miserable — MySQL plus Node will swap constantly. Buy 2GB.
How do I install Ghost on a VPS?
- Provision an Ubuntu 22.04 or 24.04 server. Ubuntu has the smoothest path for the official Ghost CLI.
- Create a non-root user with sudo. Running Ghost as root causes file permission headaches later.
- Install Node.js 18 or newer. Ghost 5.x requires it. Use the NodeSource repo rather than the distro package.
- Install MySQL 8. Create a database and a user with a strong password. Ghost handles migrations after that.
- Install the Ghost CLI globally with npm, then run the install command inside
/var/www/ghost. - Answer the prompts. URL, MySQL credentials, and Mailgun settings. You can skip the Mailgun step and configure email later, but password resets won’t work until you don’t.
- Set up systemd. The CLI installs a Ghost service automatically. Enable it so the site survives a reboot.
- Add a reverse proxy. Nginx or Caddy in front, proxying to port 2368. Caddy is simpler — three lines of config gets you automatic HTTPS.
How do I connect a domain and get HTTPS?
Point an A record at your server IP. Wait for propagation, usually under 15 minutes on Cloudflare.
If you installed with a domain in the Ghost setup, the config already knows it. If you used an IP, edit /var/www/ghost/config.production.json and change the url value, then restart Ghost with ghost restart.
For SSL, either run ghost setup ssl (which uses Let’s Encrypt via the CLI) or let Caddy handle it. Ghost’s built-in option is fewer moving parts — use it unless you already run Caddy for other sites.
Confirm the site loads at https:// before you change anything else. Mixed content warnings when you switch protocols are almost always an old http URL in the config file.
How do I keep it running?
Updates: ghost update from the CLI. Do it monthly. Ghost ships security releases and skipping several versions at once occasionally breaks themes.
Backups: /var/www/ghost/content holds themes, images, and uploaded files. The database is separate. Back up both. Ghost has a built-in export for content but it doesn’t include images, which surprises people restoring from it.
Monitoring: a free UptimeRobot check on your homepage catches the most common failure — the service dying after a server reboot.
When should you not self-host
If you don’t want to SSH into a server at 11pm when a theme update breaks the site, buy Ghost Pro. The $9 Starter tier includes the platform, hosting, and email for 500 members, and you will spend more than that in time over a year.
Also skip self-hosting if you’re sending a real newsletter to a real list. Deliverability on a self-managed setup with a small Mailgun account is noticeably worse than on Ghost Pro’s managed infrastructure, and that costs subscribers.
Self-hosting makes sense for a publication site where you control the server anyway, or a developer running several Ghost instances behind one infrastructure.
Key Takeaways
- Ghost’s software is MIT licensed and free; a workable VPS costs $6-12 per month.
- Minimum RAM is 2GB for a usable installation, not the advertised 1GB.
- Ghost 5.x requires Node.js 18+ and MySQL 8.
- Ghost CLI with
ghost setup sslhandles Let’s Encrypt certificates. - Back up
/var/www/ghost/contentand the MySQL database separately. - Managed Ghost Pro starts around $9 per month for 500 members.
Feature comparisons are on the Ghost tool page.
