Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

This is a legacy deployment procedure. Ubuntu 16.04 is end of life, and Ubuntu 18.04 left standard support on May 31, 2023. Use these instructions for an existing compatibility-bound server, preferably isolated and covered by a documented maintenance plan. For a new public forum, use a supported Ubuntu LTS and first test the FluxBB release against its PHP version.

FluxBB is lightweight and straightforward to run with Apache, PHP and MariaDB/MySQL, but its older codebase can fail on modern PHP. The commands below pin the historically associated PHP families: PHP 7.0 on Ubuntu 16.04 and PHP 7.2 on Ubuntu 18.04.

Before you begin

  • SSH access with sudo privileges.
  • A DNS A/AAAA record pointing forum.example.com to the server, if using a domain.
  • Ports 22, 80 and 443 allowed by your provider and firewall.
  • A planned database name, database username and long random password.
  • A backup destination for both the database and forum files.

Ubuntu documents Apache configuration under /etc/apache2/, including sites-available and sites-enabled. See Ubuntu’s Apache2 installation documentation. Ubuntu recommends sequential LTS upgrades rather than skipping releases; consult the release-upgrade guide before moving an old server.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Apache, PHP, MariaDB and utilities

These are historical package examples, not guarantees that obsolete repositories still work in 2026. Ubuntu 18.04’s Canonical page records PHP 7.2 among its application packages and states that standard support ended May 31, 2023: Ubuntu 18.04 LTS.

#1 Best Overall
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C

Ubuntu 18.04 historical stack

sudo apt update
sudo apt install apache2 mariadb-server 
  php7.2 libapache2-mod-php7.2 php7.2-mysql 
  php7.2-curl php7.2-xml unzip wget

Ubuntu 16.04 historical stack

sudo apt update
sudo apt install apache2 mariadb-server 
  php7.0 libapache2-mod-php7.0 php7.0-mysql 
  php7.0-curl php7.0-xml unzip wget

Some 16.04 installations used MySQL instead; substitute mysql-server if that is the database you have chosen. On an existing machine, package availability may require an archived image or repository. Do not casually expose an obsolete release to the internet; rebuilding on a supported LTS is safer.

Verify the stack:

php -v
apache2ctl -M | grep php
sudo systemctl status apache2 --no-pager
sudo systemctl status mariadb --no-pager

If Apache is not loading the module, enable the version actually installed:

sudo a2enmod php7.2
sudo systemctl restart apache2

On 16.04 use sudo a2enmod php7.0 instead. A generic php package on a current Ubuntu release may install a much newer PHP that FluxBB 1.5.x does not support, so test compatibility rather than assuming it is interchangeable.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Create a dedicated database

Open MariaDB (or MySQL) as the administrative account:

sudo mariadb

If that command is unavailable on your older installation, try sudo mysql. Then create a private database and account:

Rank #2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.
CREATE DATABASE fluxbb
  CHARACTER SET utf8mb4
  COLLATE utf8mb4_unicode_ci;

CREATE USER 'fluxbbuser'@'localhost'
  IDENTIFIED BY 'REPLACE_WITH_A_LONG_RANDOM_PASSWORD';

GRANT ALL PRIVILEGES ON fluxbb.* TO 'fluxbbuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Use the same values in the web installer. Keep the password in a password manager; do not put a real password in shell history, screenshots or documentation. Older FluxBB releases may not handle every modern character-set or collation combination correctly. If installation fails on utf8mb4, use the character set recommended by that release rather than forcing a newer collation. Never grant this account global privileges.

Download and unpack FluxBB

Pin the package version you intend to test. Historical coverage documents FluxBB 1.5.10 at this release URL: LinuxHelp’s installation reference.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
cd /tmp
wget https://fluxbb.org/download/releases/1.5.10/fluxbb-1.5.10.zip
unzip fluxbb-1.5.10.zip
sudo mkdir -p /var/www/fluxbb
sudo cp -a fluxbb-1.5.10/. /var/www/fluxbb/

The exact current FluxBB release and PHP support range are not established here; verify the release documentation before substituting another archive.

Set ownership and safe permissions

sudo chown -R www-data:www-data /var/www/fluxbb

Do not use chmod -R 777. If the installer reports that config.php must exist or be writable, grant only that file temporary access:

sudo touch /var/www/fluxbb/config.php
sudo chown www-data:www-data /var/www/fluxbb/config.php
sudo chmod 640 /var/www/fluxbb/config.php

Follow the installer’s specific permission warning; package behavior differs. After installation, restore restrictive permissions and ensure uploaded content cannot be executed as PHP.

Rank #3
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Configure an Apache virtual host

Create a site file:

sudo nano /etc/apache2/sites-available/forum.example.com.conf
<VirtualHost *:80>
    ServerName forum.example.com
    DocumentRoot /var/www/fluxbb

    <Directory /var/www/fluxbb>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/forum-error.log
    CustomLog ${APACHE_LOG_DIR}/forum-access.log combined
</VirtualHost>

Enable it and validate before reloading:

sudo a2ensite forum.example.com.conf
sudo a2enmod rewrite
sudo apache2ctl configtest
sudo systemctl reload apache2

The expected validation result is Syntax OK. Ensure DNS points to this server and port 80 is open. If Apache displays its default page, inspect the mapping with sudo apache2ctl -S; you may need:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo a2dissite 000-default.conf
sudo a2ensite forum.example.com.conf
sudo apache2ctl configtest
sudo systemctl reload apache2

For a subdirectory deployment, place the files under /var/www/html/fluxbb and use http://SERVER_IP/fluxbb/ (or the equivalent domain path) instead of making it the virtual host’s document root.

Run the FluxBB web installer

Open the installer supplied by the package:

  • http://forum.example.com/install.php for a domain-root virtual host.
  • http://SERVER_IP/fluxbb/install.php for a subdirectory installation.

Confirm the filename in your extracted package; do not assume every release uses the same installer path. Enter:

  • Database type and server, normally localhost.
  • The fluxbb database name, user and password created above.
  • A table prefix (the default is usually acceptable).
  • An administrator username and strong password.
  • Forum title and the exact base URL.

Use https://forum.example.com after TLS is configured, or https://example.com/fluxbb for a subdirectory. A wrong base URL commonly breaks redirects, cookies, stylesheets and login sessions.

Secure the completed installation

Find the installer before deleting it:

find /var/www/fluxbb -maxdepth 2 -iname '*install*' -type f

Remove the installer file included by your package:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
  • NEARLY 2X FASTER THAN OUR PREVIOUS GENERATION(8) – move 1,000 high-res photos in under 60 seconds(6) with up to 2000MB/s transfer speeds(2).
  • IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.
  • POCKET-SIZED – fits easily in pockets and small bags.
  • SPACE TO OWN YOUR AI CONTENT – speed and capacity to download your high-res clips and photo edits.
  • 256-BIT AES ENCRYPTION(4) – helps keep private files secure with password protection.
sudo rm -f /var/www/fluxbb/install.php
sudo chmod 640 /var/www/fluxbb/config.php
sudo chown www-data:www-data /var/www/fluxbb/config.php

Then log in to the administrator panel, configure mail, review registration and avatar/upload settings, and enable anti-spam controls such as email verification and CAPTCHA. Test registration, login, posting, attachments, email and password reset.

Enable HTTPS

For a supported system, a typical Apache Certbot setup is:

sudo apt install certbot python3-certbot-apache
sudo certbot --apache -d forum.example.com

On obsolete Ubuntu releases, Certbot packages and renewal support may be unavailable; use a supported host or your provider’s documented TLS service. After HTTPS works, change FluxBB’s base URL, redirect HTTP to HTTPS, and check for mixed-content links. Add HSTS only after HTTPS and renewal are proven.

Back up files and database

mysqldump --single-transaction 
  -u fluxbbuser -p fluxbb > fluxbb-$(date +%F).sql

sudo tar -czf fluxbb-files-$(date +%F).tar.gz 
  -C /var/www fluxbb

Keep copies away from the server. A backup is useful only after you restore it successfully in a test location.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting

HTTP 500, blank page or PHP fatal error

sudo tail -f /var/log/apache2/error.log
php -m

Look for removed functions, missing extensions or a PHP version mismatch. A temporary phpinfo() page can show the PHP version Apache is using; delete it immediately. Do not hide errors or solve them with world-writable permissions. Pin a compatible runtime, patch the application or migrate to maintained software.

Best Value
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

403 Forbidden

namei -l /var/www/fluxbb
ls -la /var/www/fluxbb

Check parent-directory search permissions, ownership, Require all granted, AppArmor and restrictive .htaccess rules.

Database connection failure

mysql -u fluxbbuser -p -h localhost fluxbb

Confirm the service is running, the database values and password are exact, php-mysql is loaded, and the account is allowed from localhost.

Missing CSS, images or redirects

Compare the configured base URL with the actual domain or /fluxbb path. Also check DocumentRoot, rewrite rules and HTTP/HTTPS mixed URLs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Package repositories no longer work

That is expected on an end-of-life release. Use a controlled legacy image or archived repository only temporarily, or rebuild on a supported LTS. Ubuntu’s ReleaseEndOfLife guidance explains the maintenance implications.

Should you use Ubuntu 16.04 or 18.04?

Only when an existing application or compatibility requirement leaves no practical alternative. Ubuntu 16.04 is end of life; Ubuntu 18.04 has been outside standard support since May 31, 2023, with additional coverage requiring Ubuntu Pro for applicable packages. Ubuntu Pro can help during migration, but it does not modernize FluxBB itself. For a new forum, choose a supported LTS, test the pinned FluxBB release against its shipped PHP, or evaluate maintained platforms such as phpBB, Flarum, Discourse, NodeBB or MyBB based on migration effort, resources, moderation and plugin needs.

If FluxBB must remain, isolate it in a VM or container, restrict administration, keep database ports private, monitor logs, maintain off-site backups and place a reverse proxy or WAF in front where appropriate.

Quick Recap

Bestseller No. 2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
From Sandisk, a brand professional photographers trust to take on assignments.
$165.70
SaleBestseller No. 3
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
SaleBestseller No. 4
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.; POCKET-SIZED – fits easily in pockets and small bags.
$251.93
Bestseller No. 5
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.