Flarum
Flarum is the next-generation forum software that makes online discussion fun. It’s simple, fast, and free.
Prerequisites
We’re using PHP in the stable version 8.2:
[isabell@stardust ~]$ uberspace tools version use php 8.2
Selected PHP version 8.2
[isabell@stardust ~]$
You’ll need your MySQL credentials. Get them with my_print_defaults
:
[isabell@stardust ~]$ my_print_defaults client
--default-character-set=utf8mb4
--user=isabell
--password=MySuperSecretPassword
[isabell@stardust ~]$
Your website domain needs to be set up:
[isabell@stardust ~]$ uberspace web domain list
isabell.uber.space
[isabell@stardust ~]$
Installation
We create the database and install Flarum using composer.
[isabell@stardust ~]$ mysql -e "CREATE DATABASE ${USER}_flarum"
[isabell@stardust ~]$ cd /var/www/virtual/$USER/
[isabell@stardust isabell]$ composer create-project flarum/flarum flarum --stability=beta
[…]
[isabell@stardust isabell]$ rm -f html/nocontent.html; rmdir html
[isabell@stardust isabell]$ ln -s flarum/public html
[isabell@stardust isabell]$
Configuration
After the installation you need to open https://isabell.uber.space in your browser to finish your setup.
- Fill out your forum title, admin user and edit the following database settings:
MySQL Database:
isabell_flarum
MySQL Username:
isabell
MySQL Password from your MySQL credentials
Tested with Flarum 1.8.0 and Uberspace 7.15.6
Written by: Thomas Johnson <https://johnson.tj/>