This is the story of replacing a monthly subscription with something we own: CS Panel, a self-hosted WordPress fleet manager that runs on our own server, manages every site we operate, and costs nothing per month.
Why we built it
ManageWP and MainWP both do the same core job: one dashboard, many WordPress sites. The problem is the shape of the deal. Managed services charge per site, per month, forever. MainWP is closer to what we wanted, but it still means keeping a full WordPress install around just to host the dashboard, with the entire plugin ecosystem that comes with it.
We had nine WordPress sites on one server. We did not need a subscription. We needed a panel.
The constraint that decided the architecture
The obvious approach is a WordPress plugin, the way MainWP works. We tried that first, and hit a wall that was not a preference but a hard limit.
Each site runs under its own PHP-FPM pool. Every pool has open_basedir locked to its own document root. That means code running on the dashboard site physically cannot read another site’s files. On top of that, each site’s database user holds privileges on exactly one database and nothing else.
To make a plugin work, we would have had to widen open_basedir across every customer account and grant a database user cross-database rights. That converts one bug in one plugin into a total compromise of all nine sites. On a server that had already been breached once this year, that was not a trade worth making.
What we built instead
A standalone PHP application with no WordPress core at all. No plugin ecosystem, no /wp-json surface of its own, no xmlrpc.php, no REST batch endpoint. It talks to each site the way any well-behaved client would: over HTTPS, using WordPress Application Passwords.
panel --HTTPS + Application Password--> site /wp-json/wp/v2/*
stats, comments, posts, pages, users
panel --HTTPS (cs-panel/v1)--> site [tiny helper plugin]
plugin list / activate / install / update, WP + PHP versions
No shared database credentials. No cross-site filesystem access. Every credential is revocable per site, and every action lands in the target site’s own logs. The helper plugin is capability-gated on manage_options and activate_plugins, has five endpoints, no user interface, and no public access.
What it does
- Fleet dashboard — posts, pages, comments, pending comments, users, plugin counts and available updates across every site at a glance
- Content — browse, create and edit posts and pages per site
- Comments — moderate across the fleet, approve, hold or mark as spam
- Plugins — list, activate, deactivate, install from WordPress.org and update
- Users — create panel operators with role-based access
- Audit log — every login, content change and plugin action recorded
Security, since it holds the keys
A panel that can reach every site is the most valuable target on the box, so it gets treated that way.
- Argon2id password hashing
- Session regeneration on login, session bound to User-Agent, absolute and idle timeouts
- CSRF tokens on every state-changing form
- Brute-force lockout: five failures locks the account, twenty per IP locks the address
- Optional TOTP two-factor authentication, built in with no dependency
- Per-site Application Passwords encrypted at rest with libsodium; the master key lives on disk, not in the database, so a database dump alone exposes nothing
- Strict security headers including a Content Security Policy, and no registration page at all
The honest limitation
Two things are worth saying plainly. First, this is built for sites on one server. It works over the network and could manage remote sites, but it was not designed for that and has not been hardened for it.
Second, and more useful to anyone running a mixed fleet: plugin updates are now gated by your PHP version, not your WordPress version. The current release of Contact Form 7 requires PHP 8.3. On PHP 8.2, the newest version you can run is 6.1.1. MainWP 6.4.1 also requires 8.3. If your sites are on an older PHP branch, the panel will happily tell you an update exists that your server cannot actually install. That is a server problem wearing a plugin problem’s clothes, and it is worth checking before you blame the panel.
What it replaced
Nine sites, one dashboard, zero monthly fees, and no third party holding credentials to our infrastructure. The code is ours, it runs on hardware we control, and when something breaks we can read the source.
That is the whole argument for self-hosting in one sentence: the subscription does not buy you the software, it rents you access to it.
Leave a Reply