← Tous les guides
Grav CMS
Grav is a fast, flat-file CMS that needs no database — it can be installed from a downloadable ZIP, via Composer, or by cloning its GitHub repository directly.
Ce guide est élaboré à partir de la documentation officielle de Grav CMS, dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
1Check PHP version
php -vGrav requires PHP 7.3.6 or newer.
2Get Grav (Composer method)
composer create-project getgrav/grav ~/webroot/grav3Get Grav (Git clone method, alternative)
cd ~/webrootgit clone -b master https://github.com/getgrav/grav.gitcd gravcomposer install --no-dev -obin/grav install4Point your web server at the folder
Configure Apache, Nginx or IIS to serve the extracted/cloned grav directory using the sample configs Grav ships with.
5First load
Load the site in a browser to let Grav pre-compile its cache, then create your admin user if you installed the Admin plugin.