Subrion CMS on FreeBSD: Unmaintained Since 2018, and What to Install Instead
Subrion CMS has had no release since June 2018. Here is the project's status and how to install a maintained CMS on FreeBSD 15 instead.
Subrion is an open-source PHP content management system with a plugin and template system, user permissions and a Smarty-based theme layer. Version 4.1 was commonly installed on FAMP servers (FreeBSD, Apache, MariaDB, PHP). It has not had a release since 2018 and is not a safe choice for a new site. This page sets out the project's status, what to do with an existing installation, and how to install a maintained CMS on FreeBSD 15.1, the current production release.
Project status
- The latest stable version on the project's download page is Subrion 4.2.1, released on 14 June 2018. The page still offers 4.1.5 as a long-term-support version for plugin and template compatibility.
- The GitHub repository is not archived, but the last commits on its development branch date from May 2023 ("PHP 7.4 compatibility fixes") and were never published as a release.
- The download page states the requirements as PHP 5.6 or above and MySQL 5.6 or above. Nothing from the project confirms support for PHP 8.
- Vulnerabilities reported against 4.2.1 after its release are recorded in the US National Vulnerability Database, among them an unrestricted file upload that allows code execution (CVE-2018-19422) and an SQL injection (CVE-2024-25400). No newer release exists that would contain fixes.
The platform has moved on too. FreeBSD 11 is end of life, and PHP 7.4, the newest branch the Subrion code was adjusted for, no longer receives security fixes; the PHP project currently supports 8.2 through 8.5. A current FreeBSD system therefore has no supported PHP version that Subrion is known to run on.
If you still run a Subrion site
- Take a dump of the database and a copy of the
uploadsdirectory and your template before changing anything. - Do not move the site to a server with PHP 8 and expect it to work. Test on a copy first.
- Until you migrate, restrict the admin panel (
/panel/) to your own IP addresses or put HTTP authentication in front of it, and make sure the web server does not execute scripts from the upload directories. - Plan the move to a maintained CMS. There is no automatic converter, so content is normally moved page by page or by importing the rendered HTML.
A maintained alternative on FreeBSD 15: Backdrop CMS
No maintained fork of Subrion exists. Backdrop CMS covers the same ground: a general-purpose PHP CMS for small and medium sites with content types, user roles and permissions, add-on modules and themes, and regular releases. The steps below install it on FreeBSD 15.1 with Apache, MariaDB and PHP 8.4. Run them as root.
Install the packages
pkg update
pkg install apache24 mariadb118-server mariadb118-client \
php84 mod_php84 php84-dom php84-filter php84-gd php84-session \
php84-simplexml php84-xml php84-pdo php84-pdo_mysql php84-mbstring \
php84-curl php84-zip php84-opcache
cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini
If pkg reports that a name does not exist, list what your repository offers with pkg search mod_php and pkg search -x 'mariadb.*-server' and adjust the version suffixes.
Create the database
sysrc mysql_enable=YES
service mysql-server start
mariadb-secure-installation
mariadb -u root
CREATE DATABASE backdrop CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER 'backdrop'@'localhost' IDENTIFIED BY 'change-this-password';
GRANT ALL ON backdrop.* TO 'backdrop'@'localhost';
EXIT;
Download Backdrop
Releases are published on GitHub and linked from backdropcms.org. The current release at the time of writing is 1.35.2; use the newest one listed.
cd /tmp
fetch https://github.com/backdrop/backdrop/releases/download/1.35.2/backdrop.zip
unzip backdrop.zip -d /usr/local/www/
chown -R root:wheel /usr/local/www/backdrop
chown -R www:www /usr/local/www/backdrop/files
chown www:www /usr/local/www/backdrop/settings.php
Configure Apache
In /usr/local/etc/apache24/httpd.conf, remove the # in front of the LoadModule rewrite_module line. Then create /usr/local/etc/apache24/Includes/backdrop.conf:
DirectoryIndex index.php index.html
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<VirtualHost *:80>
ServerName example.com
DocumentRoot "/usr/local/www/backdrop"
<Directory "/usr/local/www/backdrop">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
service apache24 configtest
sysrc apache24_enable=YES
service apache24 start
Finish in the browser
Open http://example.com/ and follow the installer: language, requirements check, database name, user and password, then the site name and administrator account. Afterwards make the settings file read-only for the web server:
chown root:www /usr/local/www/backdrop/settings.php
chmod 440 /usr/local/www/backdrop/settings.php
Add a TLS certificate before you log in over the public internet, and keep the system current with pkg upgrade. Backdrop's own installation instructions cover the details.
Frequently asked questions
Can Subrion 4.2.1 run on PHP 8?
The project has never announced it. The last public work on the code targeted PHP 7.4 and was not released, so any PHP 8 setup would be your own untested patchwork on top of software with open security reports.
Can I import Subrion content into another CMS?
Not directly. Subrion keeps pages, blocks and plugin data in its own MySQL tables. For a small site, copy the content page by page; for a larger one, export the relevant tables to CSV and use the import tools of the new CMS, then re-upload the files from the uploads directory.
Why not keep it running on an old PHP in a jail?
Isolation limits the damage but does not fix the application. An unmaintained CMS on an unmaintained PHP branch stays exploitable through its own web interface, and old PHP branches are no longer available as FreeBSD packages. Use a jail as a short-term holding measure during the migration, not as a permanent home.