Mastodon is not installed automatically: you follow the official documentation and handle upgrades yourself. Emails go through an external SMTP service that you sign up for separately.
Choose the resources of your VPS
Mastodon runs on all our Linux VPS plans: you only pay for the VPS.
With your consent, we measure which ads bring us customers and how the site is used. Without it, nothing is measured and the site works exactly the same. You can change your mind at any time. Cookie policy.
Guide to hosting your own Mastodon instance on a Linux VPS: PostgreSQL, Redis, domain, external SMTP and the steps from the official docs.
We do not install Mastodon automatically. This guide shows how to deploy it yourself on a Debian 12 VPS, with your own domain and an SMTP service.
Step-by-step procedure
Order the VPS and connect
Order a VPS Mini with Debian 12, then connect over SSH as root with your key. Point your domain to the VPS IPv4 before going further.
Install the system dependencies
Install Node.js, PostgreSQL, Redis, Nginx, certbot and the build libraries listed in the official documentation, then Ruby with rbenv under a dedicated mastodon user.
Get the Mastodon code
As the mastodon user, clone the official repository on the latest stable release, then install the Ruby gems and JavaScript packages as described in the installation guide.
Run the setup wizard
In the live folder, the interactive wizard asks for the domain, PostgreSQL and Redis access and the SMTP server, then creates the admin account.
Configure Nginx and the services
Copy the Nginx template shipped in the repository, get a certificate with certbot, copy the provided systemd files, then start the three Mastodon services.
Choose the resources of your VPS
Mastodon runs on all our Linux VPS plans: you only pay for the VPS.
Recommended base: Debian 12
VPS Mini: €3.99 per month incl. VAT with a 1-year term (or €4.99 per month with no commitment) · 2 vCPU · 8 GB RAM · 40 GB storage
VPS Essentiel: €7.99 per month incl. VAT with a 1-year term (or €9.99 per month with no commitment) · 4 vCPU · 16 GB RAM · 80 GB storage
VPS Performance: €17.59 per month incl. VAT with a 1-year term (or €21.99 per month with no commitment) · 8 vCPU · 48 GB RAM · 150 GB storage
VPS Pro: €27.99 per month incl. VAT with a 1-year term (or €34.99 per month with no commitment) · 12 vCPU · 64 GB RAM · 250 GB storage
Why run Mastodon on a VPS?
Mastodon is a free and decentralised social network released under the AGPL licence. Each server, called an instance, hosts its own accounts and talks to other Fediverse servers through the ActivityPub protocol. Your members can follow and reply to people registered elsewhere, with no central platform and no ads pushed on them.
Hosting your own instance lets you set the moderation rules, pick the domain name and keep control of the data. The application is built on Ruby on Rails, PostgreSQL, Redis, Sidekiq and a Node.js streaming server. A VPS with root access lets you install and tune each component, then watch the load as your community grows.
Root access for the whole stack
You install Ruby, Node.js, PostgreSQL, Redis and Nginx yourself, in the versions the Mastodon documentation asks for, and you manage the systemd services.
A dedicated IPv4 for federation
Your instance talks to other Fediverse servers from its own public address, which you map to your domain in DNS.
Resources reserved for the instance
The VPS vCPUs and RAM serve your instance only: Sidekiq, PostgreSQL and streaming share nothing with another site.
Backups from the panel
Before each Mastodon upgrade, start a backup from the panel. Also export the PostgreSQL database and media files on your side.
Before you start
Good to know: Mastodon is not installed automatically: you follow the official documentation and handle upgrades yourself. Emails go through an external SMTP service that you sign up for separately.
Recommended system: Debian 12
RAM: several GB, more if the instance has many active accounts
A domain name pointing to the VPS IPv4
Ports 80 and 443 open for Nginx and Let’s Encrypt
An external SMTP service (port 587) for emails
Storage for media, or S3-compatible object storage
Install Mastodon on your VPS
The main steps, to follow over SSH. The official documentation is the reference for the details.
Order the VPS and connect: Order a VPS Mini with Debian 12, then connect over SSH as root with your key. Point your domain to the VPS IPv4 before going further.
Install the system dependencies: Install Node.js, PostgreSQL, Redis, Nginx, certbot and the build libraries listed in the official documentation, then Ruby with rbenv under a dedicated mastodon user.
Get the Mastodon code: As the mastodon user, clone the official repository on the latest stable release, then install the Ruby gems and JavaScript packages as described in the installation guide.
Run the setup wizard: In the live folder, the interactive wizard asks for the domain, PostgreSQL and Redis access and the SMTP server, then creates the admin account.
Configure Nginx and the services: Copy the Nginx template shipped in the repository, get a certificate with certbot, copy the provided systemd files, then start the three Mastodon services.
For which projects?
Instance for a community
Internal company social network
Instance for a media outlet
Personal account on your domain
The essentials, included in every plan
No hidden extras for the essentials: protection, an IP address, a recovery console and support from real people are included from the first plan.
Anti-DDoS: Network protection is included on every service, with no paid option.
Dedicated IPv4: Each VPS has its own public address and full root access.
Recovery console: Take back control of your VPS with the noVNC console, even without SSH.
Support 7 days a week: By ticket and on Discord, from a team that knows your services.
No commitment: Monthly, cancellable at any time, or yearly to pay less.
Run Mastodon on your own VPS.
Choose your resources, install, stay in control. No commitment.
Frequently asked questions
How do I install Mastodon on a VPS?
Order a VPS running Debian 12, connect over SSH, then follow the install-from-source guide in the official documentation: system dependencies, Ruby through rbenv, cloning the repository, the mastodon:setup wizard, then Nginx, a Let’s Encrypt certificate and the systemd services. Allow time for DNS and SMTP. ACLClouds does not install anything automatically for Mastodon.
Which VPS plan should I pick for Mastodon?
The VPS Mini, with 2 vCPUs and 8 GB of RAM, is fine to start a small instance. The documentation sets no precise minimum: the load mostly depends on the number of active accounts, the Sidekiq queues and the volume of media. If the instance grows, move to the VPS Essential and keep an eye on the space used by media.
Is Mastodon free?
Yes. Mastodon is free software under the AGPL licence, with no licence to buy. You pay for the VPS, your domain name and, if needed, the SMTP service or object storage. If you modify the code and run it for other people, the AGPL requires you to publish your changes.
Why use an external SMTP with Mastodon?
Mastodon sends sign-up confirmation, password reset and notification emails. A dedicated SMTP service, reached on port 587, improves deliverability and saves you from running a full mail server. You enter its host, username and password in the mastodon:setup wizard.
Can I change the domain of a Mastodon instance?
Not cleanly. The domain is part of every account’s identity in the Fediverse and other servers keep it. Choose it before running the setup wizard. You can, however, keep a short domain for handles and serve the web interface on a subdomain with the WEB_DOMAIN setting, decided from the start.