---
title: "How to Install Flarum on Debian Latest - CloudBlast"
description: "How to Install Flarum on Debian Latest"
url: "https://cloudblast.io/he/article/How-to-Install-Flarum-on-Debian-Latest"
language: "he-IL"
---

בלוג

# How to Install Flarum on Debian Latest

יתרה חינם של 5€ בהרשמה

הירשמו ל-CloudBlast וקבלו קרדיט ענן בסך 5€ לפריסת שרתי ה-VPS שלכם

[קבלו 5€ חינם](https://console.cloudblast.io/auth/login?ref=2)

-   [חזרה](https://cloudblast.io/he)
-   [כל המאמרים](https://cloudblast.io/he/blog)

2024-09-04

### How to Install Flarum on Debian Latest

tutorials

**Learn how to set up Flarum, a dynamic open-source forum software, on Debian for a seamless community experience.**

In this guide, we'll walk you through the process of installing Flarum on Debian, a robust platform known for its speed and user-friendly interface.

**Prerequisites**

Ensure your system is prepared with the following prerequisites:

-   Server running Debian 10 or newer
-   Non-root user with sudo access

**Step 1: Install Required Packages**

Begin by updating your Debian system's package index and installing necessary packages:

> sudo apt update
> sudo apt install git curl zip unzip software-properties-common -y

**Step 2: Install Apache Web Server**

Proceed by setting up the Apache web server:

> sudo apt install apache2 -y

After installation, start and enable Apache:

> sudo systemctl start apache2
> sudo systemctl enable apache2

**Step 3: Install PHP and Required Extensions**

Install PHP along with necessary extensions. Flarum requires PHP 7.3 or higher:

> sudo apt install php php-mysql php-json php-curl php-mbstring php-xml php-zip php-gd -y

Verify the PHP version:

> php -v

**Step 4: Install MariaDB**

For database management, install MariaDB:

> sudo apt install mariadb-server mariadb-client -y

Start and enable MariaDB:

> sudo systemctl start mariadb
> sudo systemctl enable mariadb

**Step 5: Create a Database for Flarum**

Access the MariaDB shell:

> sudo mysql

Set up a new database and user:

> CREATE DATABASE database\_name;
> CREATE USER 'database\_user'@'localhost' IDENTIFIED BY 'password';
> GRANT ALL PRIVILEGES ON database\_name.\* TO 'database\_user'@'localhost';
> FLUSH PRIVILEGES;
> EXIT;

**Step 6: Install Flarum**

Clone the Flarum repository to the Apache root:

> sudo git clone https://github.com/flarum/flarum.git /var/www/html/flarum

Adjust the directory ownership to Apache's user:

> sudo chown -R www-data:www-data /var/www/html/flarum/

**Step 7: Configure Apache for Flarum**

Create a new virtual host file for Flarum:

> sudo nano /etc/apache2/sites-available/flarum.conf

Add the following configuration, replacing placeholders with actual details:

> <VirtualHost \*:80>
> ServerName domain\_name
> DocumentRoot /var/www/html/flarum/public
>
> <Directory /var/www/html/flarum/public>
> AllowOverride All
> </Directory>
>
> ErrorLog ${APACHE\_LOG\_DIR}/error.log
> CustomLog ${APACHE\_LOG\_DIR}/access.log combined
> </VirtualHost>

Enable the configuration and restart Apache:

> sudo a2ensite flarum.conf
> sudo a2enmod rewrite
> sudo systemctl restart apache2

**Step 8: Install Flarum Web Installer**

Access the Flarum installer via your web browser at `http://your_domain.com/install.php`, and complete the setup.

Congratulations, you've successfully set up Flarum on Debian. Start building your forum community today!

שתף

## המשיכו לקרוא

[2026-07-25 How to Install and Set Up Mailcow on Ubuntu and Debian VPS tutorials](https://cloudblast.io/article/how-to-install-and-setup-mailcow-on-ubuntu-and-debian-vps)

[2026-07-25 How to Install Chatwoot on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-chatwoot-on-ubuntu-and-debian-server)

[2026-07-25 How to Install Mattermost on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-mattermost-on-ubuntu-and-debian-server)

[2026-07-25 How to Install RustDesk on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-rustdesk-on-ubuntu-and-debian-server)
