How To Install Grav Cms On Centos 7.6

Installation of Grav CMS On Centos 7.6

Installation Process

Check the centos version by using the following command

[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64

Download the grav cms installation package by using wget command

[root@linuxhelp ~]# wget https://github.com/getgrav/grav/releases/download/1.4.3/grav-admin-v1.4.3.zip
--2019-11-22 05:17:47--  https://github.com/getgrav/grav/releases/download/1.4.3/grav-admin-v1.4.3.zip
Resolving github.com (github.com)... 13.234.210.38
Connecting to github.com (github.com)|13.234.210.38|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/22553797/dfdfa9ac-3e6c-11e8-89b0-c47120745211?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191121%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191121T204342Z&X-Amz-Expires=300&X-Amz-Signature=a9ec0db4b57e7e76ce474828c9fd83c91f62e88576beb4f91da5e99f8298532f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgrav-admin-v1.4.3.zip&response-content-type=application%2Foctet-stream [following]
--2019-11-22 05:17:47--  https://github-production-release-asset-2e65be.s3.amazonaws.com/22553797/dfdfa9ac-3e6c-11e8-89b0-c47120745211?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191121%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191121T204342Z&X-Amz-Expires=300&X-Amz-Signature=a9ec0db4b57e7e76ce474828c9fd83c91f62e88576beb4f91da5e99f8298532f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgrav-admin-v1.4.3.zip&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.18.216
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.18.216|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8757355 (8.4M) [application/octet-stream]
Saving to: ‘grav-admin-v1.4.3.zip’

100%[=============================================================>] 8,757,355   1.12MB/s   in 8.8s   

2019-11-22 05:17:57 (973 KB/s) - ‘grav-admin-v1.4.3.zip’ saved [8757355/8757355]

Extract the grav cms by using the unzip command

[root@linuxhelp ~]# unzip grav-admin-v1.4.3.zip 
Archive:  grav-admin-v1.4.3.zip
   creating: grav-admin/
  inflating: grav-admin/.htaccess    
  inflating: grav-admin/CHANGELOG.md  
  inflating: grav-admin/CODE_OF_CONDUCT.md  
.
.
   creating: grav-admin/vendor/twig/twig/src/Util/
  inflating: grav-admin/vendor/twig/twig/src/Util/DeprecationCollector.php  
  inflating: grav-admin/vendor/twig/twig/src/Util/TemplateDirIterator.php  
  inflating: grav-admin/vendor/autoload.php  

Move the grav cms directory to apache root directory

[root@linuxhelp ~]# mv grav-admin /var/www/grav

Set the Ownership for grav cms

 [root@linuxhelp ~]# chown -R apache:apache /var/www/grav

Set the Permission for grav cms

[root@linuxhelp ~]# chmod -R 755 /var/www/grav

Configure the virtualhost for grav cms

[root@linuxhelp ~]# vim /etc/httpd/conf.d/grav.conf
<virtualhost *:80> 
servername  www.linuxhelp1.com
Documentroot  /var/www/grav
<Directory /var/www/grav > 
AllowOverride all
allow from all
</Directory> 
</virtualhost>

Restart the apache by using the following command

 [root@linuxhelp ~]# systemctl restart httpd

Open the browser and enter your domain name Enter your admin credentials for grav cms This is the dashboard of grav cms

Thus the method to install grav cms on centos 7.6 comes to an end

FAQ
Q
What is the Custom Admin URL for grav cms?
A
The Custom Admin URL for grav cms is
"http://yourwebsite.com/admin"
Q
How many Risk-levels are available in grav cms? what are they?
A
There are five levels of risk involved with Grav as a software:

• Highly Critical
• Critical
• Moderately Critical
• Less Critical
• Not Critical
Q
What are the features of Grav cms ?
A
check here for Features of grav cms : " https://getgrav.org/features "
Q
What is the requirement needed for Grav cms?
A
The requirement needed for Grav cms are

1. Web Server (Apache, Nginx, LiteSpeed, Lightly, IIS, etc.)
2. PHP 5.6.3 or higher
Q
WHAT IS GRAV cms?
A
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. Although Grav follows principles similar to other flat-file CMS platforms, it has a different design philosophy than most.