Installation Guide: Ubuntu 25.04
Overview
Friendica is a decentralized social networking platform designed for interoperability, long‑form content, and broad federation across the Fediverse. Unlike microblog‑focused platforms, Friendica supports multiple protocols, flexible post formats, and a more traditional social‑networking model. This guide provides a complete, real‑world installation process for deploying Friendica on a modern Ubuntu 25.04 system using PHP 8.4, MariaDB, and Apache with a secure reverse‑proxy configuration.
Purpose of This Guide
The official documentation covers the fundamentals, but does not fully address the practical challenges encountered on current Linux distributions, particularly with newer PHP versions, updated module paths, and modern reverse‑proxy setups. This guide is designed to fill those gaps by providing:
- A reproducible installation workflow.
- Verified configuration examples.
- Clear explanations of required components.
- Troubleshooting notes based on real‑world behavior.
- Cross‑references to deeper guides for Apache, PHP‑FPM, MariaDB, and federation.
Target Environment
This guide assumes the following environment:
- Operating System: Ubuntu 25.04
- Web Server: Apache 2.4 with SSL and reverse proxy modules
- PHP: PHP 8.4 with required extensions
- Database: MariaDB 10.x
- HTTPS: SAN certificate or equivalent TLS configuration via Let's Encrypt (Certbot).
- Deployment Model: Native installation
- This mean no Docker.
- Access: Public domain with DNS configured
Prerequisites
Before beginning, ensure you have:
- A domain name pointed to your server’s public IP.
- A valid TLS certificate (Let’s Encrypt or SAN certificate).
- Basic familiarity with Linux command‑line operations.
- Ability to edit Apache vHost files.
- Ability to create and manage MariaDB databases.
- A clean directory structure for hosting Friendica.
- A working mail server or SMTP relay for notifications and password resets.
- This is a hard requirement. You will not receive your temporary password to log in without it!
- Adminer or equivalent database management tool
Guide Structure
This installation guide is divided into the following sections:
- Introduction (this section)
- Prerequisites and System Preparation
- Directory Layout and Permissions
- Downloading Friendica
- Apache Configuration (Reverse Proxy + PHP‑FPM)
- PHP 8.4 Configuration
- MariaDB Setup
- Running the Installer
- Post‑Installation Tasks
- Federation Checklist
- Troubleshooting
- Maintenance and Updates