Self-host Grav
2.2.28Flat-file CMS powered by Markdown, Twig and Symfony
docker run -d -p 8080:80 -e FIX_PERMISSIONS=true -v grav_site:/var/www/html getgrav/grav- Stars
- 15 718
- Port
- 80 (HTTP inside the official Docker container, where Apache listens)
getgrav/gravWhat is Grav?
Grav is a flat-file content management system built on PHP (8.3 or higher), Symfony, Twig, Markdown and YAML. It needs no database: pages are ordinary files in folders, which makes content easy to version with git and move anywhere. Grav 2 ships a single-page admin panel built with SvelteKit 5, a first-party REST API with an OpenAPI spec that also powers headless and CI-driven publishing, and a built-in MCP server that gives AI agents the same permissions as a human admin. Plugins and themes are installed and updated through the Grav Package Manager (bin/gpm), and a Grav CLI (bin/grav) handles installs, cache clearing, user creation and backups. Other capabilities include multi-language support, automatic image processing, full-text search, user accounts with roles, and multi-site setups from one install. You run it by extracting a ZIP under a web server (Apache, IIS or Nginx), via composer create-project, or with the official Docker image. The core is MIT-licensed and free; the team also sells premium plugins and themes, and upgrading from the Grav 1.x series requires a dedicated migration rather than a simple self-upgrade.
Grav alternatives
CockpitCockpit is a self-hosted, open-source headless CMS with GraphQL and REST APIs, flexible content modeling, and multi-language support. Runs on PHP with SQLite or MongoDB.CompareCockpit with Grav
VonCMSVonCMS is a self-hosted, open-source CMS for publishers. Runs on PHP/MySQL with no Node.js, offering editorial workflow, bundled themes, built-in SEO, GPL-3.0-only.CompareVonCMS with Grav
StrapiSelf-hosted, open-source headless CMS built with JavaScript/TypeScript that generates REST and GraphQL APIs from content models, with a customizable admin panel.CompareStrapi with Grav
directusDirectus is a self-hosted headless CMS that puts instant REST and GraphQL APIs, a no-code admin Studio, media library and an MCP server on top of your own SQL database.Comparedirectus with Grav
cmsA self-hosted flat-file content management system built on Laravel, installed with Composer or Laravel Sail, with live preview, blueprints and headless APIs.Comparecms with Grav
Vvveb CMSSelf-hosted open-source PHP CMS with a visual drag-and-drop builder, multi-site and multi-language support, headless GraphQL/REST APIs and built-in ecommerce.CompareVvveb CMS with Grav
craft-cmsCraft CMS is a self-hosted PHP CMS for custom websites and headless apps with Twig and GraphQL. It offers a user-friendly control panel and flexible content modeling.Comparecraft-cms with Grav
TYPO3 CMSSelf-hosted, open-source PHP CMS for enterprise sites: multisite and multilingual content, versioning, granular permissions, extensions, Composer install.CompareTYPO3 CMS with Grav
All self-hosted alternatives to Drupal → All self-hosted alternatives to WordPress →
Should you self-host Grav?
Grav scores 74/100 on selfhost.directory (how scoring works) and ranks #5 of 43 in Content Management. It has 15 718 GitHub stars, +39 in the last 30 days.
It shipped 81 stable releases in the past year. The latest, 2.2.28, came out on 7 November 2026. New versions land roughly every 1 days.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in PHP.
Its closest alternative on selfhost.directory is Ghost (83/100, 55 708 stars). It scores higher overall, so compare the two before you pick. See Grav vs Ghost side by side.
Features
- Admin Panel
- Caching
- CLI Tools
- Debug panel
- Flat-file storage (no database)
- Full-Text Search
- Image Processing
- MCP Server
- Multi-language Support
- Multi-site
- Plugin & theme package manager
- Real-time collaborative editing
- REST API
- Revision HistoryPremium plugin, not part of the free core.
- User accounts and role-based access control
Grav README
Grav is a Fast, Simple, and Flexible, file-based Web-platform. There is Zero installation required. Just extract the ZIP archive, and you are already up and running. It follows similar principles to other flat-file CMS platforms, but has a different design philosophy than most. Grav comes with a powerful Package Management System to allow for simple installation and upgrading of plugins and themes, as well as simple updating of Grav itself.
The underlying architecture of Grav is designed to use well-established and best-in-class technologies to ensure that Grav is simple to use and easy to extend. Some of these key technologies include:
More in Website Builder
hotglue2Hotglue is a self-hosted, open-source web page builder with drag-and-drop editing and flat-file storage — no database needed, runs on PHP 8.
Joomla!Self-hosted, open-source CMS for building multilingual, SEO-ready business and community websites on PHP with MySQL, MariaDB or PostgreSQL.- Lichen-MarkdownSelf-hosted, open-source flat-file CMS that renders Markdown pages into a static site, with a browser editor, file manager and folder-based localization.
MicroweberSelf-hosted drag-and-drop website builder and CMS based on Laravel with built-in e-commerce, blog, and content management features.
octoberSelf-hosted, source-available PHP CMS built on Laravel for developers and agencies: one-file pages, Twig templates, plugins, themes and Tailor content types.
QloAppsSelf-hosted, open-source hotel PMS with a direct booking engine and responsive hotel website for multi-property, multilingual hotels.
silexSelf-hosted, open-source visual website builder (AGPL) that exports clean HTML/CSS, plugs into headless CMSs, and runs via Docker, Node.js, CapRover or a desktop app.
smartsites-editor-platformSelf-hosted open-source website builder with drag-and-drop CMS and visitor analytics, built on Django and React.
TYPO3 CMSSelf-hosted, open-source PHP CMS for enterprise sites: multisite and multilingual content, versioning, granular permissions, extensions, Composer install.
Vvveb CMSSelf-hosted open-source PHP CMS with a visual drag-and-drop builder, multi-site and multi-language support, headless GraphQL/REST APIs and built-in ecommerce.
webinyAn open-source, self-hosted headless CMS that runs serverless in your own AWS account, with a GraphQL API, drag-and-drop page builder, file manager and multi-tenancy.
webstudioOpen-source visual website builder pitched as an alternative to Webflow: every CSS property, design tokens, headless CMS data, and self-hosted export of built sites.

0 comments