selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Grav logo

Self-host Grav

2.2.28

Flat-file CMS powered by Markdown, Twig and Symfony

ReleaseOpen SourceMIT
docker run -d -p 8080:80 -e FIX_PERMISSIONS=true -v grav_site:/var/www/html getgrav/grav
Updatedyesterday
LanguagePHP
Setup difficultyEasy
Stars
15 718
Port
80 (HTTP inside the official Docker container, where Apache listens)
Docker
getgrav/grav
A freshly installed Grav site showing the default sample page

What 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

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

PHPStan Discord PHP Tests OpenCollective OpenCollective OpenCollective

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:

How to install Grav

Install Grav with Docker

Environment variables
GRAV_SETUP, GRAV_CHANNEL, GRAV_SCHEDULER, FIX_PERMISSIONS
# Pull and run
docker run -d -p 8080:80 -e FIX_PERMISSIONS=true -v grav_site:/var/www/html getgrav/grav

# Open browser
open http://localhost:8080

Official image uses Apache; create volumes to persist Grav's user, backups, and logs folders.

How to configure Grav

  • GRAV_SETUPtrueAuto-install Grav if volume is empty (Docker image)

    values: true/false

  • GRAV_CHANNELstableRelease channel for the Docker image install

    values: stable or beta

  • GRAV_SCHEDULERtrueEnable Grav scheduler cron job (Docker image)

    values: true/false

  • FIX_PERMISSIONSfalseFix file permissions on startup (Docker image)

    values: true/false

  • GRAV_ENVIRONMENTSelects the active environment for configuration under user/env/ and the .env.<environment> layered file suffix

Grav releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Website Builder

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…