How to install Grav CMS on CentOS 6.9

To install Grav CMS on CentOS 6.9

Grav is a free and open source content management system. Grav does not use a database to store its data, instead the data is stored in flat files in markdown format. Grav is written in PHP and contains a score of plugins for the users to use. It uses twig templating, YAML, parsedown and doctrine cache for faster perfomance. This tutorial covers the installation procedure of Grav CMS on CentOS 6.9. 

 

Pre-Requisite

Before proceeding to the installation, check whether the target machine contains both Apache webserver and PHP. 

 

Installation procedure

To start with the installation procedure, download the grav package by executing the following wget command followed by the download link. 

[root@linuxhelp1 html]#  wget https://github.com/getgrav/grav/releases/download/1.1.12/grav-v1.1.12.zip
--2017-09-08 15:38:04--  https://github.com/getgrav/grav/releases/download/1.1.12/grav-v1.1.12.zip
Resolving github.com... 192.30.255.113, 192.30.255.112
Connecting to github.com|192.30.255.113|:443... connected.
.
.
100%[======================================>] 4,091,647   22.9K/s   in 3m 0s   

2017-09-08 15:41:06 (22.2 KB/s) - “grav-v1.1.12.zip” saved [4091647/4091647]

Next download the grav admin package by running the wget command followed by the download link. 

[root@linuxhelp1 html]# wget https://github.com/getgrav/grav/releases/download/1.1.12/grav-admin-v1.1.12.zip
--2017-09-08 15:42:22--  https://github.com/getgrav/grav/releases/download/1.1.12/grav-admin-v1.1.12.zip
Resolving github.com... 192.30.255.112, 192.30.255.113
Connecting to github.com|192.30.255.112|:443... connected.
.
.
100%[======================================>] 7,120,896   48.4K/s   in 78s     

2017-09-08 15:43:44 (88.7 KB/s) - “grav-admin-v1.1.12.zip” saved [7120896/7120896]

Now download the grav-skeleton-course-hub package by executing the following command. 

[root@linuxhelp1 html]# wget https://github.com/hibbitts-design/grav-skeleton-course-hub/releases/download/v1.4.1/grav-skeleton-course-hub-site.zip
--2017-09-08 15:44:06--  https://github.com/hibbitts-design/grav-skeleton-course-hub/releases/download/v1.4.1/grav-skeleton-course-hub-site.zip
Resolving github.com... 192.30.255.112, 192.30.255.113
Connecting to github.com|192.30.255.112|:443... connected.
.
.
100%[======================================>] 42,180,548  55.7K/s   in 16m 54s

2017-09-08 16:01:03 (40.6 KB/s) - “grav-skeleton-course-hub-site.zip” saved [42180548/42180548]

The three sets of Grav has been downloaded successfully. Now unzip the respective downloaded packages by running the following command. 

[root@linuxhelp1 Desktop]# unzip grav-v1.1.12.zip
Archive:  grav-v1.1.12.zip
   creating: grav/
  inflating: grav/.htaccess          
.
.
inflating: grav/vendor/twig/twig/lib/Twig/Util/TemplateDirIterator.php  
  inflating: grav/vendor/autoload.php  

Unzip the grav admin package by executing the following command. 

[root@linuxhelp1 Desktop]# unzip grav-admin-v1.1.12.zip
Archive:  grav-admin-v1.1.12.zip
   creating: grav-admin/
  inflating: grav-admin/.htaccess    
  inflating: grav-admin/CHANGELOG.md  
.
.
inflating: grav-admin/vendor/twig/twig/lib/Twig/Util/TemplateDirIterator.php  
  inflating: grav-admin/vendor/autoload.php  

Unzip the grav skeleton course hub site. 

[root@linuxhelp1 html]# unzip grav-skeleton-course-hub-site.zip
Archive:  grav-skeleton-course-hub-site.zip
   creating: grav-skeleton-course-hub-site/
  inflating: grav-skeleton-course-hub-site/.dependencies  
  inflating: grav-skeleton-course-hub-site/.editorconfig  
.
.
inflating: grav-skeleton-course-hub-site/webserver-configs/nginx.conf  
  inflating: grav-skeleton-course-hub-site/webserver-configs/web.config  

The three packages have been extracted. Move the unzipped files into html location

[root@linuxhelp1 Desktop]# mv  grav  grav-admin   grav-skeleton-course-hub-site  /var/www/html/

Change the ownership of the files in html location. 

[root@linuxhelp1 Desktop]# chown -R apache:apache /var/www/html

Change the permission of extracted files in the given above location. 

[root@linuxhelp1 Desktop]# chmod -R 755 /var/www/html/

Restart the apache service

[root@linuxhelp1 Desktop]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

Swtich over to the browser and give the URL as machine ip followed by the /grav. It will open the home page on Grav CMS. 
browser

To open the admin page enter the URL containing the machine ip / grav-admin. The admin page will appear on the screen. Fill the details and click create user. 
admin page

It opens the dashboard of admin in Grav CMS. 
dashboard

To open the grav-skeleton-course-hub-site enter the URL as machine ip/ grav-skeleton-course-hub-site. The admin page fo skeleton course hub site will appear on the screen. Fill the details and click create user
grav skeleton hub

It opens the dashboard of grav-skeleton-course-hub-site for various CMS functions. 
grav skeleton dashboard

The installation of Grav CMS on CentOS 6.9 is done without any glitches. 


Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website www.linuxhelp.com
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: CentOS CMS tool
user image Author :  Caden