Building an honest open source social network means running a federated platform such as Mastodon, Pleroma, or GoToSocial on your own server, where the code is public, the data stays under your control, and no advertising algorithm decides what people see. The shortest working path is: rent a small VPS, point a domain at it, install the platform with Docker, configure TLS and email, then invite people and set clear moderation rules. This guide covers that path in detail, including the parts most guides skip.
What You'll Need
- A domain name you control (for example, social.example.com).
- A virtual private server (VPS) with at least 2 GB of RAM and 2 CPU cores, running a current Debian or Ubuntu release. Mastodon is the heaviest of the common choices; GoToSocial runs comfortably on less.
- Root or sudo access to that server, plus basic comfort with a terminal and SSH.
- An email account or SMTP relay for signup confirmations and password resets. Without working email, new users cannot confirm their accounts.
- A backup destination: object storage, another server, or scheduled snapshots from your VPS provider.
- A moderation plan written down before you invite anyone: what is allowed, who enforces it, and how reports are handled.
Step-by-Step
- Choose your platform. Mastodon is the most widely documented and has the largest ecosystem. Pleroma is lighter but has a smaller, more fragmented community. GoToSocial is newer, resource-light, and aimed at single-user or small instances. Pick based on how much server you can afford and how much admin time you have, not on feature checklists you will never use.
- Provision the server. Create a VPS with a current Debian or Ubuntu image, add your SSH key at creation time, and log in as a non-root user with sudo. Run the system updates before anything else:
sudo apt update && sudo apt upgrade. Reboot if the kernel updated. - Point DNS at the server. Create an A record for your chosen hostname pointing to the VPS IPv4 address, and an AAAA record if you have IPv6. Wait for propagation; this can take minutes to hours depending on your registrar. Do not skip this and try to fix it later, because TLS certificate issuance depends on it.
- Harden the basics. Set up a firewall allowing only SSH, HTTP, and HTTPS. Disable password logins for SSH and use keys only. Install fail2ban if your provider does not already. These steps are not optional on a public-facing server; automated scanners find new hosts within hours.
- Install the platform. For Mastodon, the official documentation provides a Docker Compose setup that bundles PostgreSQL, Redis, and the web and streaming services. Clone the official repository, copy the example environment file, generate the required secrets with the provided commands, and set your domain and SMTP details. Bring the stack up with Docker Compose and watch the logs for errors before moving on.
- Configure email. Set SMTP host, port, username, password, and the from-address in the environment file. Send a test signup to an address you control. If mail lands in spam, check SPF and DKIM records for your domain; most providers require them now.
- Enable HTTPS. Use the platform's documented reverse proxy setup with a certificate from Let's Encrypt. The certificate must cover your exact hostname. Renewal is automated by the client; verify the timer is active so the site does not go dark in ninety days.
- Create the admin account and close registrations. The first account created through the setup flow becomes the admin. Immediately decide your registration policy: open, approval-required, or invite-only. For a new instance, approval-required or invite-only is the safer default until you understand the moderation load.
- Write and publish your rules. Post a pinned message or a static page describing what the instance is for, what is not allowed, how reports are handled, and what happens to data if you ever shut it down. "Honest" here means users can read the rules and the code, and can leave with their data.
- Set up backups and test a restore. Back up the database and the media directory on a schedule. A backup you have never restored is a guess, so restore to a scratch server once and confirm the instance comes up.
- Invite a small group first. Bring in a handful of people you trust, watch the logs and the moderation queue for a week, then widen the invite circle. Federation traffic and signup volume both grow faster than most new admins expect.
Common Mistakes
The most common failure is skipping email configuration and then wondering why nobody can sign up. The second is underestimating disk use: media attachments grow steadily and a small VPS fills up. Set up media retention or pruning before you need it. Third, many new admins leave registrations fully open on day one and get flooded with spam accounts. Fourth, people treat backups as done once configured and never test a restore. Fifth, admins forget that federation means other servers see your public posts; privacy settings are per-post, not global, and "followers-only" still leaves metadata visible. Finally, choosing a platform based on hype rather than the resources you actually have leads to a server that falls over under modest load.
Tips
Keep the stack boring: the distribution's stable packages, the platform's official Docker images, and no extra services on the same host. Document every change you make in a plain text file on the server, because future-you will not remember why a setting exists. Use a separate domain or subdomain for the social instance so you can move it later without breaking your main site. Read the platform's release notes before upgrading; major versions sometimes require manual database migrations. Join the admin community for your platform, because most problems are solved by someone who hit them last week. And decide early how you will handle a legal takedown request or a harassment report, because those arrive at the worst possible time.
Troubleshooting
If the site does not load, check in this order: is the container running, is the reverse proxy up, is DNS resolving to the right address, and is the certificate valid and not expired. If signups fail, test SMTP from the server itself and check the spam folder and the provider's logs. If federation seems broken, confirm your instance can reach other servers over HTTPS and that your domain's webfinger endpoint responds; a misconfigured reverse proxy is the usual cause. If the server runs out of disk, prune media and old logs rather than deleting the database. If the database will not start after an upgrade, restore from the most recent backup before debugging further, and read the release notes for the migration step you missed. If users report missing posts, check whether the remote instance is reachable and whether the post was deleted at the source; federation is not instant and not guaranteed.
Frequently Asked Questions
Is an open source social network really free?
The software is free to use and modify. Running it is not: you pay for the server, the domain, and your time on moderation and maintenance.
Do I need to know how to code?
No, but you need to be comfortable with a terminal, SSH, DNS records, and reading documentation. Copying commands without understanding them is how instances break.
Can I move my account to another server later?
Most federated platforms support exporting your data and redirecting followers to a new account. The exact steps vary by platform, so check the documentation for yours before you rely on it.
Who moderates the content?
You do, as the admin. Federation means you also decide which remote instances to block or silence, and that decision affects what your users see.
How much does hosting cost?
It depends on the provider and the size of your instance. A small VPS is enough for a personal or small-group server; larger instances need more RAM, storage, and moderation time.
Is my data private?
Only as private as your server and your settings make it. Public posts are visible to other instances, and direct messages are not end-to-end encrypted on most platforms.