Tutorials  /  Ubuntu

Install ElkArte Forum on Ubuntu 18.04 or 20.04 Easily

Ccentron Redaktion · July 2025 ·5 min read ·Ubuntu, Tutorial

ElkArte is a free, modern forum software that builds upon the foundation of Simple Machines Forum (SMF). Designed for simplicity and flexibility, SMF is a lightweight platform that enables users to create and manage online communities. With support for numerous community-created themes and plugins, ElkArte is highly customizable. It is developed in PHP and features a clean, responsive web interface. This guide walks you through installing ElkArte on an Ubuntu 18.04 or 20.04 server.

Prerequisites

  • A fully updated Ubuntu 18.04 or 20.04 server
  • A non-root user account with sudo privileges
VM

Matching infrastructure at centron

Ubuntu servers without your own hardware: ccloud³ VMs with full root access from €3.12 per month, billed by the hour and ready in seconds. Rent a cloud server →

1. Set Up the LAMP Stack

Begin by updating your package list:

Console
$ sudo apt update

Install the required repository tools:

Console
$ sudo apt -y install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt update

Install Apache, MySQL, PHP 7.4, and essential PHP extensions:

Console
$ sudo apt install apache2 mysql-server php7.4 libapache2-mod-php7.4 php7.4-common php7.4-sqlite3 php7.4-json php7.4-curl php7.4-intl php7.4-mbstring php7.4-xmlrpc php7.4-mysql php7.4-gd php7.4-xml php7.4-cli php7.4-zip php7.4-soap php7.4-imap php7.4-bcmath wget unzip -y

Display available time zones and pick the one that matches your location:

Console
$ sudo timedatectl list-timezones

Edit PHP’s configuration settings:

Console
$ sudo nano /etc/php/7.4/apache2/php.ini

Update the configuration values below, replacing Africa/Nairobi with your local time zone:

Code
max_execution_time = 360    
memory_limit = 256M
upload_max_filesize = 100M
date.timezone = Africa/Nairobi

Tip: Press Ctrl + W in nano to search specific lines.

2. Set Up the ElkArte Database

Access the MySQL shell (leave the password prompt empty if not set):

Console
$ sudo mysql -u root -p

Create the database and user for ElkArte:

Code
CREATE DATABASE elkarte;
CREATE USER 'elkarte'@'localhost' IDENTIFIED BY 'StrongPassword';
GRANT ALL ON elkarte.* TO 'elkarte'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

3. Install the ElkArte Software

Download the latest version of ElkArte from the official GitHub page:

Console
$ wget https://github.com/elkarte/Elkarte/releases/download/1.1.7/ElkArte_v1-1-7_install.zip

Create the directory for ElkArte installation:

Console
$ sudo mkdir /var/www/elkarte

Extract the package files into the new directory:

Console
$ sudo unzip ElkArte_v1-1-7_install.zip -d /var/www/elkarte

Adjust ownership and permissions for the directory:

Console
$ sudo chown -R www-data:www-data /var/www/elkarte
$ sudo chmod -R 755 /var/www/elkarte

4. Configure Apache2 for ElkArte

Create a new virtual host configuration file for Apache named elkarte.conf:

Console
$ sudo nano /etc/apache2/sites-available/elkarte.conf

Insert the configuration block below into the file, then save and exit:

Code
<VirtualHost *:80>

    ServerAdmin admin@example.com
    DocumentRoot /var/www/elkarte
    ServerName example.com
    ServerAlias www.example.com

    <Directory /var/www/elkarte/>
        Options FollowSymlinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Navigate to the Apache configuration directory:

Console
$ cd /etc/apache2/sites-available/

Disable the default Apache site configuration:

Console
$ sudo a2dissite 000-default.conf

Activate the new configuration for ElkArte:

Console
$ sudo a2ensite elkarte.conf

Enable the Apache rewrite module:

Console
$ sudo a2enmod rewrite

Restart the Apache service to apply the new settings:

Console
$ sudo systemctl restart apache2

5. Open the ElkArte Web Installer

Launch your web browser and go to the server’s IP address to start the web-based setup:

Code
http://192.0.2.10/

Conclusion

ElkArte has been successfully installed on your Ubuntu server. Upon visiting the specified URL, you’ll be guided through the Installation Wizard. During this process, connect to the MySQL database previously created and configure the administrator account. Once setup is complete, you can access the admin dashboard and start customizing and managing your new forum community.

Jetzt 200 € Guthaben sichern

Testen Sie Ihr Setup auf ccloud³

Registrieren Sie sich in der ccloud³ und erhalten Sie 200 € Startguthaben für Ihr Projekt – z. B. für eine PostgreSQL-VM mit automatischen Backups.

centron Redaktion Technische Redaktion

Das Redaktionsteam von centron schreibt Anleitungen aus dem Betriebsalltag: getestet auf unserer eigenen Plattform, betrieben im Rechenzentrum in Hallstadt bei Bamberg.

Kategorie Ubuntu
Teilen
Noch offene Fragen?

Unser Team hilft Ihnen bei Ihrem konkreten Setup weiter – von Menschen, die die Plattform selbst betreiben.

War dieses Tutorial hilfreich?

Ihre Antwort wird anonym gespeichert und hilft uns, die Tutorials zu verbessern.

Kommentare

Noch keine Kommentare – stellen Sie die erste Frage zu diesem Tutorial.

Zum Kommentieren anmelden

Kommentare stehen centron-Kunden offen. Melden Sie sich in Ihrem Konto an, um eine Frage zu diesem Tutorial zu stellen.

Weiterlesen

Das könnte Sie auch interessieren

Jetzt kostenlos anfangen

Melden Sie sich an und erhalten Sie in den ersten 60 Tagen ein Guthaben von 200 € bei centron.

Dieses Werbeangebot gilt nur für neue Konten. Angebot ausschließlich für Gewerbetreibende.

Jetzt loslegen Sales kontaktieren