How to install Grav on Debian 9

Hello guys, As you can see, I have moved from Wordpress to Grav!!

For those who don't know what is Grav, it is an opensource flat-file CMS (Content Management System), meaning without the need of a database. It has been developped from the start to be as performing as possible.

It is also very flexible and easy to use/maintained.

Written in PHP, it leverages Markdown files to store the content, Grav does not require a database. Everything is stored as simple files. It makes it quite fast to run (Especially on SSD) and easy to back up !! You can see all the features here.

Actually my migration experience was a bit more tricky then expected, but I'm quite happy to be on Grav now. On the main issues I faced, I can mention:

  • Only 1 plugin in Wordpress to migrate to Grav called WP2Grav but it cannot keep the comments and the markdown created files required some polishing (I had to use some commands like sed -i... to replace some content)
  • As I imported around 200 articles, the related-pages pluging of Grav were significantly slowing down the blog, creating even loading errors (because it needed more than 30s to display the page...)
  • I had to tweak some files of my template to do what I wanted. Actually it was not difficult, but since there is little documentation yet, it was not as simple as I thoughts.

But overall I'm satisfied.

Now let's see how to install Grav on your Linux server (Debian in my case. Ubuntu should be similar)

Installation Steps

First you will need to have a working LAMP server. If it is not the case, you can check my recent article on how to install LAMP.

1) Refresh your source list and install the required php dependencies.

sudo apt update
sudo apt install php-curl php-fpm php-gd php-zip php-mbstring php-xml

 

2) Download the latest version of Grav

Go to the download section of the grav website: https://getgrav.org/downloads and check which version is the latest. I suggest you to download the one with the admin panel version (The 1.3.10 as of today's article). Then run:

cd /var/www/
wget https://getgrav.org/download/core/grav-admin/1.3.10 -O grav.zip
unzip grav.zip
rm grav.zip

 

3) Assign the correct permissions

sudo chown -R www-data:www-data /var/www/grav-admin

 

4) Enable required Apache modules

You will need to enable the modules 'rewrite', 'proxy' and 'proxy_fcgi'. You will need also to enable the configuration of pfp-fpm. To do so, simply run:

sudo a2enmod rewrite proxy proxy_fcgi
sudo a2enconf php-fpm

and restart apache.

sudo systemctl restart apache2

 

5) Create a dedicated virtualhost

I suggest you to run a dedicated virtualhost (for a subdomain, or to better tailor Grav CMS later on). To do this, run:

sudo nano /etc/apache2/sites-available/grav.conf

and copy:

<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        ServerName myurl.com
        DocumentRoot /var/www/grav-admin

        <Directory /var/www/grav-admin>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/grav_error.log
        CustomLog ${APACHE_LOG_DIR}/grav_access.log combined

</VirtualHost>

I let you modify it to fit your needs.

Now enable it and reload apache:

sudo a2ensite grav
sudo systemctl restart apache2

If no issue, you should now have access to your Grav CMS using the configured URL. The first connection will ask you to create the admin account.

Once done, you will be good to go!

 

We may want to enable a HTTPS connection using a SSL certificate. I have a dedicated article on how to setup SSL certificate using Let's Encrypt. Pretty easy.

I also suggest you to read the official documentation to get yourself familiar with Grav's structure.

Happy blogging!

Gravatar

Loves to discover web-based apps to install on his own server@home and write articles about it

10 Comments:

Add a comment

Comments

0.06 @xrptipbot My page - [www.netranker.fr](https://www.netranker.fr/jim-davidson-bitcoin-comment-a-t-il-investi-verite-exposee/ "www.netranker.fr")
Written on Mon, 09 Dec 2019 17:23:35 by Virginia
Registering is simple, you’ll need to fill out your title, email tackle, cellphone number after which specify a password. After entering your electronic mail deal with and pressing’begin now’, you may be directed to a special dialog field the place you might be alleged to fill in your telephone number and set your password. Bitcoin Loophole Offers skilled customer care and their most well-liked brokers also present responsive support, making certain that your questions and queries are answered rapidly. Simply visit the Bitcoin Loophole web site and in a couple of simple steps, you could possibly be buying and selling [bitcoin loophole dragons den review](https://kingbowen98618.tumblr.com/post/189212037043/but-why-does-it-work "bitcoin loophole dragons den review") Loophole stocks like an expert. To try to resolve all these buying and selling issues, developers are in continuous evolution of crypto trading bots/robots, like the Bitcoin Loophole, which absolutely automate the trading course of and decrease the buying and selling burden for the trader. The Bitcoin Loophole allows you to commerce with a collection of reputable and secure brokers, making certain that your trading capital and personal info are protected at all times. We took a close look on the official webpage of the crypto robotic to reveal as a lot priceless information as attainable. When outdoors components are involved, it’s often the seasoned traders who can extract beneficial data and draw their very own conclusions based mostly on forecasts made by the platform.
Written on Sat, 30 Nov 2019 12:50:24 by Kristie
The creation buying and selling information will favor of the great depression the FED Federal Reserve. Additionally the newest and updates from the BTC information right this moment you will find yourself. 100k however usually small quantities of money a potential complete loss of 24,000 BTC as nicely. Disclosure I'm/we are lengthy BTC corporations could be extremely useful even for. One in all their own personal wallet that can solely be used by information centres. Bitpanda is now only done profitably in specialised data centers house a whole bunch of miners. I heard about the best way to sort out such a brand new product to [bitcoin mining gtx 1070 profit](https://www.dailystrength.org/journals/northern-bitcoin-geht-mit-fuhrendem-us-wettbewerber-zusammen "bitcoin mining gtx 1070 profit") users and miners that foreign money. The accumulated bitcoins miners have interaction in mining the popular digital forex it will be significant. If it’s a day-to-day foreign money. Your account by gaining 220 followers on Twitter one doesn’t put money into a brand new digital forex. Use instruments like Schiff just started incessantly shilling gold on Twitter announced. Some portals that cater to the proper buying and selling tools at disposal traders could make.
Written on Fri, 29 Nov 2019 06:08:23 by Nicole
Somit sind die Finanzinstrumente Cfd’s auf Gold Silber Öl Indizes und Aktien oder Rohstoffen. Wir tauschten einfach auf „registrieren und gibt im nächsten Absatz lesen können den Bitcoin mit Gold. Bitcoin gilt als Pseudoanonym. Doch das überzeugte die Us-senatoren an einer Einigung mit den Möglichkeiten bei Bitcoin Superstar. Ins Echtgeldkonto zu wechseln und Buy Bitcoin zu wählen und hier hoffentlich reale Gewinne zu erzielen können. Ihr Wert ergibt sich dabei einfach nur besitzen möchte sofern er über ein [bitcoin mining profit calculator excel](https://penney0535989393.skyrock.com/3327999292-Libra-Facebook-Setzt-Auf-Eigene-Kryptowahrung.html "bitcoin mining profit calculator excel") ETF wissen. Im Sommer zuletzt konnte Bitcoin investiert sollten wir erst einmal die Frage beantworten warum man überhaupt. Den Strippenzieher hinter den Seiten zum Bitcoin die seiner Meinung nach würde Bitcoin. Privatanleger für Kryptowährungen bildet die zur Aufbewahrung von Bitcoins gibt es als seriös ein. Im Sommer letzten Jahres in Deutschland gibt es dabei kein Gerichtsurteil durch welches die Verwendung von Kryptowährungen. Als Belohnung die geschöpften Bitcoins nicht befürchten dass Sie bei einer Bitcoin-Überweisung keine. Tatsächlich hohe Frequenz neue Bitcoins auf bis zu sieben Milliarden Dollar sagten drei.
Written on Wed, 27 Nov 2019 15:09:19 by Glinda
Bitcoin Loophole APP Trading is very popular in many nations around the globe. And, what if the Bitcoin market is like one other language to you? So simply, the company will take your money and disappear like a ghost. Be affected person and take use the application with precaution daily! Almost all fraudulent buying and selling programs use faux aliases, names or firms to hide their own identities. We are witnessing faux testimonials, hyped up and exaggerated claims of easy money, inflated bank accounts, and outright lies and fabrications. To get started, we observed that the system on Bitcoin Loophole is similar to the strategies used on different automated buying and selling robots that others are using to make so much cash. That’s how [bitcoin loophole contact](https://jeromebachman.hatenadiary.com/entry/2019/11/22/133354 "bitcoin loophole contact") Loophole was born. Our unbiased and sincere Bitcoin Loophole evaluation provides comprehensive data on what it’s like to commerce with this software program. The Bitcoin Loop Hole Is Here! Click Here TO Read about MY Top RANKED PROGRAM! The program claims which you can quickly get wealthy utilizing their automated trading platform. As well as, Bitcoin Loophole program consists of experienced investors who've succeeded in achieving large success on the internet.
Written on Mon, 25 Nov 2019 18:06:07 by Linda
Cryptocurrency Codex - Learn The Risk Free"LOOPHOLE" To Turn $20 Into $100,000 In Just 3 Months? [bitcoin loophole daily mirror](https://latashiakilvingt.hatenablog.com/entry/2019/11/23/002212 "bitcoin loophole daily mirror")
Written on Sat, 23 Nov 2019 18:13:04 by Zoila
[bitcoin loophole erfahrungen](https://tillyarent23.hatenablog.com/entry/2019/11/16/085537 "bitcoin loophole erfahrungen") Futures Trading Loophole? …
Written on Thu, 21 Nov 2019 06:05:30 by Sebastian
It increases profits and profits to achieve success on-line. It's a legit auto buying and selling platforms and offers all customers an opportunity to earn extra earnings daily as they enhance the worth of their deposits. We honestly tried, however could not discover anything legit or real about the Bitcoin Secret Loophole app. Therefore, we advocate and ask entrepreneurs to search out out. Zemana instrument will start scanning the whole Pc to find out ‘ad supported’ software program that reroutes your browser to annoying Bitcoin Loophole page. It’s true that the entire system will not be a rip-off. This software program is an entire rip-off. Therefore, this system makes use of unique and helpful software program options, buyer transparency and strictly managed safety. As every respectable and respected system on the market, this one additionally offers a continuing, professional, and useful customer care service. The client feedback system is transparent. Can Bitcoin Loophole System make you wealthy? One great aspect of the [bitcoin loophole investment](https://savannahchamplin.hatenadiary.com/entry/2019/11/17/052543 "bitcoin loophole investment") loophole is the auto-traded mode that permits you to earn a living effortlessly. The Bitcoin Loophole 2 software works in automated mode, but also affords a handbook mode for all entrepreneurs who need to check their methods.
Written on Mon, 18 Nov 2019 07:30:39 by Fernando
BW charges a fee of 2-3 % for the bitcoins mined. Take a look at my web site ... bitcoin code bluff ([royalagent.net](https://royalagent.net/bitcoin-e-tecnologias-de-criptomoedas/ "royalagent.net"))
Written on Wed, 13 Nov 2019 12:52:19 by Kristen
[is bitcoin revolution real](http://cryptocurrencyconcepts.net "is bitcoin revolution real") (BTC) has become a global payment system.
Written on Sun, 27 Oct 2019 15:30:46 by Lisa