Upload index.php to your web host
FTP, SFTP, SCP, your host's file manager — any method works. Place the file in your public_html/ or document root directory. No other files needed.
Deployment Reference
One file. Any server. Apache or Nginx. Shared hosting or a bare VPS. This page has everything you need — bookmark it and come back whenever you spin up a new site.
Quickstart
# 1. Upload the file
scp index.php user@host:public_html/
# 2. Visit your domain
https://yourdomain.com
# 3. Done
Setup wizard launches automatically
From a blank server to a live, production-ready site. No prior configuration required.
index.php to your web hostFTP, SFTP, SCP, your host's file manager — any method works. Place the file in your public_html/ or document root directory. No other files needed.
yourdomain.com in your browserOn the very first request, MonolithCMS creates everything it needs. site.sqlite is created and all 29 database migrations run instantly. A .htaccess file is written to disk, blocking direct browser access to sensitive file types. Cache directories are created. The setup wizard launches.
Set your site name, create your admin account, configure your AI provider (OpenAI, Anthropic Claude, or Google Gemini), and optionally configure your email sender. Takes under two minutes.
The public-facing site is live at your domain. Log in to the admin panel at /admin to start building content, run the AI site generator, or configure settings.
Describe your project in plain language. The AI designs your full site from first principles — colour palette, typography, page structure, all content — and shows you a complete preview before writing a single character to the live database.
MonolithCMS runs on both. Here is everything you need to configure each server correctly.
What happens automatically on first request
.sqlite, .db, .env, .log, .sh, .bak, and .sql filesApache requirement
mod_rewrite must be enabled and AllowOverride All must be set for the document root. On cPanel, Plesk, and most shared hosts this is already the default.
Generated .htaccess (written on first request)
RewriteEngine On
RewriteBase /
# Redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
# Block direct access to sensitive files
<FilesMatch "\.(sqlite|sqlite3|db|env|log|sh|bak|sql)$">
Require all denied
</FilesMatch>Moving a MonolithCMS site is two copy commands. Every page, blog post, media file reference, user account, revision, setting, and configuration — all of it lives in site.sqlite. Copy the two files and the entire site is running on the new server.
Terminal — migrate to new server
# Copy the application
# Copy the entire database (site, users, content)
✔ That's it. Visit the new domain. Site is live.
Every security layer described here requires zero configuration. It is all on by default, from the first request.
Auto-generated .htaccess on Apache. PHP-level 403 on Nginx — fires before any routing logic. The database is unreachable even if the web server is misconfigured.
Passwords hashed with bcrypt at cost 12. CSRF tokens derived via HMAC-SHA-256, verified with constant-time comparison, never stored in a database or session.
IP-based rate limiting on login (5 attempts per 15 minutes) and contact form submissions (5 attempts per hour). Enforced at the application layer with no external dependency.
6-digit MFA codes, bcrypt-hashed in the database, expiring in 10 minutes. Per-request Content Security Policy nonces for inline scripts.
Sessions stored in SQLite rather than the filesystem. Portable across shared hosting environments where /tmp is shared or unreliable across requests.
Three roles built in: admin, editor, and viewer. Assign clients editor access for content updates while protecting structural settings and deployment controls.
If it runs PHP 8.1+ and has a writable document root, MonolithCMS runs on it. Here is what you need — and nothing more.
cPanel, Plesk, DirectAdmin — any shared host with PHP 8.1+. Upload via the file manager or FTP. .htaccess written automatically. SQLite is bundled with PHP; no database provisioning needed.
Required: PHP 8.1+, mod_rewrite, writable directory
Deploy with SCP or rsync. Ensure AllowOverride All is set for the document root so the auto-generated .htaccess takes effect immediately.
Required: Apache 2.4+, mod_rewrite, AllowOverride All
Add the two location blocks from the config section above to your server block. PHP-level protection handles what .htaccess would normally cover.
Required: Nginx, PHP-FPM 8.1+, writable directory
MonolithCMS
~18,629 lines of PHP. 29 database migrations on first boot. Zero dependencies. Everything you just read — routing, auth, caching, AI generation, the admin panel — is in a single file you can upload right now. Open source under the GNU General Public License v3.
GNU GPL v3 — self-hosting fully permitted, no phone-home, no cloud dependency of any kind.