Anchor CMS on FreeBSD: Discontinued, and What to Install Instead
Anchor CMS is archived and unmaintained. Here is its status, how to save an existing site, and how to install WriteFreely from packages on FreeBSD 15 or 14.
Anchor CMS was a small PHP and MySQL blog engine that many people ran on FreeBSD with Apache, MariaDB and PHP (a "FAMP" stack). The project has been discontinued, so this article explains its status, why it should not be installed on a current FreeBSD release, and how to set up a maintained Markdown blogging platform from FreeBSD packages instead.
Status of Anchor CMS
The anchorcms/anchor-cms repository on GitHub was archived by its owners on 19 May 2020 and is read-only. Its README opens with a "No Longer Maintained" notice in which the maintainers advise using alternative platforms and say the project should no longer be considered production ready. There have been no security fixes since.
The last code base asks for PHP 5.6 or later with the mcrypt extension. mcrypt was removed from PHP in version 7.2, and none of the PHP branches Anchor was developed against are supported any more. On FreeBSD 15 or 14 with a current PHP package, Anchor does not meet its own requirements, and patching an abandoned application to run on the public internet is not a sound plan. FreeBSD 11 itself reached end of life in 2021.
If you still run an Anchor site
- Export the content while the old server still works: dump the database with
mysqldumpand copy thecontentdirectory, which holds uploaded files. - Posts are stored as Markdown or HTML in the database, so they can be moved into any Markdown-based system by hand or with a short script.
- Take the old installation offline once the content is moved; do not leave an unmaintained PHP application reachable.
Maintained alternatives in FreeBSD ports
| Software | Port | Notes |
|---|---|---|
| WriteFreely | www/writefreely | Minimal Markdown blogging platform, a single Go binary with SQLite or MySQL. Closest to Anchor's "just write" idea. |
| Hugo | www/gohugo | Static site generator; Markdown files in, plain HTML out, no database or PHP on the server. |
| Serendipity | www/serendipity | Traditional PHP weblog software for an existing FAMP stack. |
| WordPress | www/wordpress | Full PHP and MySQL CMS, far larger than Anchor. |
Install WriteFreely on FreeBSD 15 or 14
WriteFreely needs no web server, PHP or separate database for a small blog. As root, update the package catalogue and install it:
pkg update
pkg install writefreelyThe package creates a writefreely user and puts the templates, static files, configuration and the SQLite database in /usr/local/www/writefreely. Enable the service and run the interactive setup supplied by the port's service script:
service writefreely enable
service writefreely setupThe setup asks how the instance will run (standalone or behind a reverse proxy), which port to listen on, which database to use, and for the site name and the first administrator account, then writes config.ini. Start the service:
service writefreely start
service writefreely statusOpen the address and port you chose in a browser and log in with the administrator account. For a public site, choose the reverse proxy mode, keep WriteFreely on a local port and put Nginx, Apache or Caddy with a TLS certificate in front of it.
After a package upgrade to a new WriteFreely version, migrate the database before starting again:
service writefreely stop
service writefreely migrate
service writefreely startConfiguration options are described in the WriteFreely documentation.
Frequently asked questions
Is there a maintained fork of Anchor CMS?
The original maintainers did not hand the project over or name a successor; their notice only recommends moving to other platforms. Treat any fork with caution and check its commit history and security record before relying on it.
Do I need a FAMP stack for a simple blog at all?
No. WriteFreely is a single service with an embedded SQLite database, and Hugo produces static files that any web server can deliver. Both avoid keeping PHP and MySQL patched just for a blog.
Can I keep my Anchor theme?
Not directly. Anchor themes are PHP templates that call Anchor's own functions. The HTML structure and CSS can be reused as the starting point for a Hugo theme or for custom CSS in WriteFreely.