Friendica: what it is and how to host it

Updated

Friendica is a PHP and MariaDB social network server with Facebook-style profiles, groups, long posts and fine-grained privacy, and it talks to Mastodon, diaspora*, RSS feeds and email from one timeline. You can host it on an ordinary VPS with Apache, PHP, MariaDB and a cron job, either from the release archive, from git, or with the official Docker image. If you only want an account, joining an existing server from the official directory is far less work.

At a glance

Item Details (checked 2026-12-02)
Latest stable release 2026.05, released 21 May 2026 (GitHub tag 2026.05-1)
Next release 2026.08 release candidate, announced 16 August 2026, not yet stable
Licence AGPL-3.0 or later
Language and database PHP; MariaDB recommended, MySQL with InnoDB also works
PHP Docs say 7.4+; 2026.05 is the last release for PHP below 8.2, so use 8.2+
Memory At least 2 GB, per the requirements page
Background work Cron job every 5-10 minutes, or the worker daemon
Install routes Release archive, git clone, official Docker image
Directory of servers dir.friendica.social

What Friendica is and what it connects to

Friendica is one of the older projects in the fediverse. Where Mastodon is built around a short-post timeline, Friendica looks more like a classic social network: profiles, photo albums, events, groups (called forums in older versions) and posts with no tight length limit. Each post can be shared publicly or with a chosen circle of contacts.

According to the project homepage and README, Friendica has built-in support for:

  • ActivityPub, so you can follow and reply to people on Mastodon, Pleroma, Pixelfed, PeerTube, Lemmy, Misskey, Funkwhale, Hubzilla and others.
  • diaspora*, controlled by the “Enable Diaspora support” switch in the admin site settings. It is only available when Friendica runs at the root of its domain.
  • OStatus, the older protocol behind GNU social.
  • RSS and Atom feeds, so you can follow blogs and websites (read-only; you cannot reply to them).
  • Email, through IMAP, if the PHP IMAP module is installed. You can then add email contacts to private conversations.

Connector addons cover services Friendica core does not speak natively. The current connectors page names AT Protocol services (Bluesky and similar) and Tumblr, with two-way sync available for both, and the 2026.05 release improved Bridgy Fed and AT Protocol account integration. The fediverse apps directory shows how Friendica compares with the other server software you could run.

Host it yourself or join a server?

Self-hosting makes sense if you want your own domain, your own moderation rules, or a private network for a family, club or organization. It is a real commitment: Friendica’s own install guide says it “more closely resembles an email server than a web server”: it queues deliveries, retries failed servers and runs background jobs all day.

Join an existing server if you just want an account. The official Friendica Directory listed 105 public servers on 2026-12-02, with each server’s language, user count, registration policy (open or by approval) and whether it runs the stable or develop version. Pick one with open registration in your language, and look at its about page and admin before signing up. You can run a server address through the instance checker to see what it reports before you commit.

What the server needs

From the stable install guide and the requirements page:

  • A domain or subdomain of its own. Installing in a sub-path is not well tested, and diaspora* federation requires a domain or subdomain with no path. Changing the domain later is supported but “things still might break”, so choose carefully.
  • HTTPS on that domain.
  • Apache with mod_rewrite and AllowOverride All, so Friendica’s .htaccess works. nginx and lighttpd are also supported with sample configs.
  • PHP with command-line access and register_argc_argv enabled, the POSIX module, and the Curl, GD, GMP, PDO, mbstring, MySQLi, xml, zip, Intl, IDN and OpenSSL extensions. php-imagick is optional, for animated GIF and WebP.
  • MariaDB (recommended) or MySQL with InnoDB and Barracuda.
  • Cron, and a way to send email (covered below).
  • At least 2 GB of RAM. The requirements page notes that some 1 GB servers dropped database connections.

On PHP versions: the install guide and composer.json still accept PHP 7.4 (the requirements page adds that PHP 7 no longer gets official support and that PHP 8.5 is supported), but the 2026.05 release notes say it is the last release that runs on PHP below 8.2, and the 2026.08 release candidate raises the minimum to 8.2. Start on PHP 8.2 or newer so your next upgrade does not force a PHP migration. The official 2026.05 Docker image is built on PHP 8.4.

A small VPS is the usual home for this. See how to pick a VPS for self-hosting for sizing and providers.

Route 1: release archive or git

The archive route means downloading friendica-full and the matching friendica-addons archive, checking their SHA256 sums, and unpacking them into your web root, including the hidden .htaccess-dist file. On 2026-12-02 the project’s download page still listed 2026.01 as current, so take the 2026.05 archive links from the 2026.05 release announcement instead.

The git route makes updates much easier. These commands come from the install guide:

git clone https://github.com/friendica/friendica.git -b stable mywebsite
cd mywebsite
git clone https://github.com/friendica/friendica-addons.git -b stable addon
bin/composer.phar run install:prod
mkdir -p view/smarty3
chown www-data:www-data view/smarty3
chmod 775 view/smarty3

Create an empty database and a user for it in mysql, using a strong generated password:

CREATE DATABASE friendicadb;
CREATE USER 'friendica'@'localhost' IDENTIFIED BY 'CHANGE_ME';
GRANT ALL ON friendicadb.* TO 'friendica'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Then copy the rewrite rules into place (copy, do not rename, because git tracks the original):

cp .htaccess-dist .htaccess

Now open your domain in a browser and follow the web installer, or run bin/console autoinstall with a prepared config file, environment variables or command-line options. Afterwards, check that https://example.org/.well-known/host-meta returns an XML document; if it does not, other servers cannot talk to yours. Finally, register your own account with the same email address you gave as the admin address.

Route 2: the official Docker image

friendica is a Docker Official Image, maintained from the friendica/docker repository. The latest and stable tags pointed at 2026.05 on 2026-12-02; rc and dev tags also exist, and you should avoid them on a server people depend on. The default tag includes Apache; fpm and fpm-alpine variants need a separate web server.

This is the base Apache example from the image’s README, with placeholders filled in:

version: '2'

services:
  db:
    image: mariadb
    restart: always
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_USER=friendica
      - MYSQL_PASSWORD=CHANGE_ME
      - MYSQL_DATABASE=friendica
      - MYSQL_RANDOM_ROOT_PASSWORD=yes

  app:
    image: friendica
    restart: always
    volumes:
      - friendica:/var/www/html
    ports:
      - "127.0.0.1:8080:80"
    environment:
      - MYSQL_HOST=db
      - MYSQL_USER=friendica
      - MYSQL_PASSWORD=CHANGE_ME
      - MYSQL_DATABASE=friendica
      - FRIENDICA_ADMIN_MAIL=admin@example.org
    depends_on:
      - db

volumes:
  db:
  friendica:

The README says this setup has no TLS and is meant to run behind a proxy. The port line deliberately differs from the README: 127.0.0.1:8080:80 publishes the port only on loopback, so your reverse proxy on the same machine reaches it and nothing outside does. If your proxy runs on another host, change it to that machine’s private address, such as 10.0.0.5:8080:80 on a LAN or VPN, and let only the proxy through your firewall; never publish plain 8080:80 on a public interface. Set FRIENDICA_URL to your https:// address and add the SMTP variables described below.

Background worker: cron or daemon

Friendica sends and fetches everything through a background worker, and the docs are blunt: it “will not work correctly” without it. The install guide’s cron line runs the worker every 10 minutes (add it with crontab -e, usually for the web server user, and adjust the paths):

*/10 * * * * cd /home/myname/mywebsite; /usr/bin/php bin/console.php worker

The alternative is the worker daemon:

cd /path/to/friendica; php bin/console.php daemon start
cd /path/to/friendica; php bin/console.php daemon status

The daemon does not restart itself after a reboot or crash, so you still need cron or a service manager to bring it back. If you used the daemon before 2026.05, the release notes say its functionality moved into the console, so switch to the bin/console daemon command. As a last resort on hosts with no cron, the admin panel has a “frontend worker” option.

With Docker, run a second container from the same image and volume with /cron.sh as its entrypoint and the same database settings. The official example builds both containers from a small local Dockerfile based on friendica:apache (it only adds an addon config for its Redis setup) and reads the database settings from an env file; the block below uses the published image and inline variables instead, which is a simplification rather than the example verbatim. The image’s cron.sh starts the worker daemon in the foreground and also runs the image’s msmtp setup, so give this container the same SMTP variables as the app container if you set them:

  cron:
    image: friendica
    restart: always
    volumes:
      - friendica:/var/www/html
    entrypoint: /cron.sh
    environment:
      - MYSQL_HOST=db
      - MYSQL_USER=friendica
      - MYSQL_PASSWORD=CHANGE_ME
      - MYSQL_DATABASE=friendica
    depends_on:
      - db

Outgoing email

Friendica uses mail for registration confirmations, password resets and notifications, so it needs a working PHP mail() or an SMTP account. If you do not run a mail server, enable the phpmailer addon, which replaces mail() with an outbound SMTP connection configured in config/phpmailer.config.php. The Docker image uses msmtp instead: set SMTP, SMTP_DOMAIN, SMTP_AUTH_USER and SMTP_AUTH_PASS, and change SMTP_FROM from the default no-reply if your provider rejects it. Use a dedicated mailbox rather than your personal account.

TLS and reverse proxy

HTTPS is listed as a prerequisite, and federation will not work well without a valid certificate. If you put Friendica behind a reverse proxy that terminates TLS, the proxy must pass the standard Forwarded header with proto=https; Friendica also accepts X-Forwarded-Proto, Front-End-Https and X-Forwarded-Ssl, but the docs prefer Forwarded on new setups. If uploads fail, raise the size limits on the proxy as well as in PHP; the troubleshooting section lists every setting involved.

Keeping the admin side safe

Friendica’s admin panel lives at /admin on the same public site, and admin rights go to the accounts whose email addresses are listed in admin_email in config/local.config.php. That means the admin account is only as safe as its login:

  • Turn on two-factor authentication (TOTP) for every admin account in its security settings.
  • Set the registration policy to “requires approval” or “closed” unless you really want an open server; spammers target open Friendica sites.
  • Use the fail2ban recipe in the admin tools docs to block repeated failed logins.
  • Keep MariaDB bound to localhost or the Docker network, never published. For database work, connect over SSH rather than opening the port.
  • If only you administer the server, consider restricting /admin at the reverse proxy to your VPN or home IP address. This is not covered in Friendica’s docs, so test that normal pages and federation still work afterwards.
  • Watch the server from the outside with the approach in instance monitoring for fediverse servers.

Upgrades

The update guide says the stable branch is “updated about four times a year”, but in 2026 so far there have been two stable releases (2026.01 in January and 2026.05 in May). Read each release announcement first: the 2026.05 notes, for example, say that anyone on a release older than 2026.01 must update to 2026.01 first. Back up before every upgrade.

With git, update core and addons separately:

cd path/to/friendica
git pull
bin/composer.phar run install:prod
cd addon
git pull

With archives, unpack the new version into a new folder, copy over config/local.config.php, config/addon.config.php, the proxy/ folder, .htaccess and any storage folder inside the install, then swap the folder names. The site may enter maintenance mode while the database schema updates. If the update stalls, run bin/console dbstructure update; on big databases this can take days. With Docker, pull the new image and recreate the container; the image checks the installed version at startup and upgrades it.

Backups

The install guide names the two things you cannot lose: config/local.config.php and a recent database dump. The migration guide’s dump command is:

mysqldump  -p friendica_db > friendica_db-$(date +%Y%m%d).sql

If you use the filesystem storage backend for uploads, back up that folder too (bin/console storage list shows which backend is active). For Docker, back up the friendica volume, which holds /var/www/html, plus a database dump. Keep copies off the server, and test a restore on a spare machine now and then. For a broader view of the work involved in a social server, compare with hosting a Mastodon server.

Frequently asked questions

Can Friendica users follow Mastodon accounts?
Yes. Friendica speaks ActivityPub, so its users can follow and reply to accounts on Mastodon, Pleroma, Pixelfed, PeerTube, Lemmy and other ActivityPub servers. diaspora* contacts work too once the admin enables Diaspora support.
What is the latest stable Friendica release?
On 2026-12-02 the latest stable release was 2026.05, published on 21 May 2026 and tagged 2026.05-1 on GitHub after a build-only fix. A 2026.08 release candidate was announced on 16 August 2026 but had not become a stable release by that date.
Which PHP version should a new Friendica server use?
The install guide still says PHP 7.4 or later, but the 2026.05 release notes say it is the last release that works with PHP below 8.2, and the 2026.08 release candidate raises the minimum to 8.2. Use PHP 8.2 or newer on any new server.
Does Friendica need a cron job?
Yes, or the worker daemon. Friendica delivers and fetches posts in the background, and the docs say it will not work correctly without the background worker. The frontend worker in the admin panel is only a fallback for hosts that cannot run cron.
Do I need my own mail server?
No. Friendica needs a way to send mail for registrations and notifications, but the phpmailer addon can send through any SMTP account, and the Docker image has its own SMTP settings.

Sources, checked December 2, 2026

  1. Friendica installation guide (stable branch)
  2. Updating Friendica (stable branch)
  3. Friendica server requirements
  4. Friendica README (stable branch)
  5. Friendica project homepage
  6. Friendica 2026.05 released
  7. Friendica 2026.08 release candidate
  8. Friendica releases on GitHub
  9. Friendica download files
  10. Friendica Docker image README
  11. Friendica Docker example with cron container
  12. Friendica 2026.05 apache Dockerfile
  13. Docker Hub: friendica official image
  14. Docker official-images library file for friendica (tag mapping)
  15. Friendica Docker image cron.sh (2026.05 apache)
  16. Friendica admin site settings source (Enable Diaspora support)
  17. Friendica docs: Connectors
  18. Friendica docs: Admin settings
  19. Friendica docs: Admin tools
  20. Friendica docs: Migrating to a new server
  21. Friendica docs: Two-factor authentication
  22. phpmailer addon README
  23. Friendica composer.json (licence and PHP constraint)
  24. Friendica Directory: public servers

More in Fediverse