Come hang with us on Discord and chat directly with the team!Discordtop-bar-close-icon

2026-04-09

How to Install Vanilla Forums on NixOS Latest: Complete Setup Guide

tutorial
img

Installing Vanilla Forums on NixOS Latest

Vanilla Forums is a popular open-source community platform designed for building discussion boards, customer communities, and engagement hubs. If you want to deploy Vanilla Forums on NixOS Latest, the process involves preparing your system, installing the required software stack, downloading the application files, and completing the web-based setup. This guide walks through each step in a clear and practical way so you can get your forum running smoothly.

Prerequisites

Before installing Vanilla Forums on NixOS, make sure your server meets a few basic requirements. You should have a running NixOS system, a stable internet connection, and a user account with sudo privileges or root access. It is also helpful to know your server's IP address or domain name so you can access the installer from a web browser later.

Update NixOS Packages

Start by refreshing your NixOS channels and rebuilding the system so you are working with the latest available packages and configuration state.

sudo nix-channel --update

sudo nixos-rebuild switch

Keeping the system updated helps avoid package conflicts and ensures your server is ready for the Vanilla Forums installation.

Install PHP on NixOS

Vanilla Forums relies on PHP to process dynamic content. First, check whether PHP is already available on your server.

php -v

If the command does not return a PHP version, install PHP using the Nix package manager.

sudo nix-env -i php

After installation, confirm that PHP is working correctly.

php -v

This verification step ensures that the PHP runtime is present before you continue with the web server setup.

Install Apache Web Server

To serve Vanilla Forums through a browser, you need a web server. Apache is a widely used and reliable choice for hosting PHP-based applications on Linux servers, including NixOS.

sudo nix-env -i apache httpd php

Once Apache is installed, enable the service so it starts automatically at boot, then start it immediately.

sudo systemctl enable httpd

sudo systemctl start httpd

At this stage, your NixOS server should be capable of serving web content and handling PHP requests required by Vanilla Forums.

Download Vanilla Forums

The next step is to fetch the Vanilla Forums package from the official distribution source. Download the latest archive directly to your server.

wget https://open.vanillaforums.com/get/vanilla-core.zip

After the download finishes, extract the application into your Apache document root so the forum files are accessible through the web server.

sudo unzip vanilla-core.zip -d /var/www/html/

This places the Vanilla Forums files in the web-accessible directory, typically under /var/www/html/vanilla depending on the archive structure.

Configure Vanilla Forums

To make Vanilla Forums work properly under Apache, adjust the rewrite configuration in the .htaccess file located inside the Vanilla installation directory.

sudo vi /var/www/html/vanilla/.htaccess

Open the file and locate the line beginning with RewriteBase. Remove the comment marker if necessary and set the correct installation path.

RewriteEngine On

RewriteBase /vanilla/

Save the file and exit the editor. This change helps Apache route requests correctly so the forum pages load as expected.

Open the Vanilla Forums Installer

With the application files in place and Apache running, you can launch the installer in your browser. Visit your server's IP address or domain followed by the Vanilla path.

http://your_ip_address/vanilla/

You should see the Vanilla Forums setup page. Follow the on-screen prompts to finish the installation, including any database and administrator account details requested during the web-based configuration.

Helpful Tips for a Smooth Installation

  • Make sure Apache is active before trying to access the installer in a browser.
  • Verify that PHP is installed and responding correctly if the setup page does not load.
  • Double-check the RewriteBase path if you encounter broken links or routing errors.
  • Use the correct server IP address or configured domain name when opening the installation URL.

Conclusion

Installing Vanilla Forums on NixOS Latest is a straightforward process when you prepare the system properly and follow the required steps in order. By updating NixOS, installing PHP and Apache, downloading the Vanilla Forums package, and adjusting the Apache rewrite settings, you can quickly deploy a functional discussion platform. Once the web installer is complete, your new community forum will be ready for customization, user registration, and ongoing management.