How to Install Grav CMS on Oracle Linux 8.5

To Install Grav CMS on Oracle Linux 8.5

Introduction:

Grav is a free, self-hosted content management system (CMS) written in PHP. It uses flat-file databases both in the backend and in the frontend. The Grav admin plugin offers an intuitive and simple interface for configuring and creating content.

Prerequisite:

Lamp Stack Apache, MySQL , PHP 8.0

Installation Steps:

Step1: Check the OS by using the below command.

[root@linuxhelp linuxhelp]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.5"

Step 2: Install the Dependencies by using the below command

[root@linuxhelp linuxhelp]# dnf install php php-fpm php-mysqlnd php-opcache php-gd php-xml php-mbstring -y php-zip

Step 3: Download the Grav CMS Package by using the below command.

[root@linuxhelp linuxhelp]# wget https://getgrav.org/download/core/grav-admin/1.7.34
--2022-07-10 04:34:23--  https://getgrav.org/download/core/grav-admin/1.7.34
Resolving getgrav.org (getgrav.org)... 104.26.2.204, 104.26.3.204, 172.67.72.160, ...

Saving to: ‘1.7.34’

1.7.34                 100%[============================>]  17.34M  5.49MB/s    in 3.2s    
2022-07-10 04:34:29 (5.49 MB/s) - ‘1.7.34’ saved [18185208/18185208]

Step 4: Long list the files by using the below command.

[root@linuxhelp linuxhelp]# ls –la
-rw-r--r--   1 root      root      18185208 Jun 14 22:40 1.7.34

Step 5: Unzip the Downloaded Package by using the below command

[root@linuxhelp linuxhelp]# unzip 1.7.34
Archive:  1.7.34
   creating: grav-admin/
  inflating: grav-admin/.htaccess    
   creating: grav-admin/webserver-configs/
  inflating: grav-admin/webserver-configs/Caddyfile-0.8.x  
  inflating: grav-admin/webserver-co
   creating: grav-admin/assets/
  inflating: grav-admin/assets/.gitkeep  

Step 6: Long list the files by using the below command

[root@linuxhelp linuxhelp]# ls –la
drwxr-xr-x  15 root      root          4096 Jun 14 22:40 grav-admin

Step 7: Rename and Move the Extracted Directory to Apache Root Directory by using the below command

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

Step 8: Grant Permission and Set Ownership for Grav CMS by using the below command

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

Step 9: Create Virtual Configuration to Access Grav CMS by using the below command.

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

Step 10: Restart the Apache Service by using the below command

 [root@linuxhelp linuxhelp]# systemctl restart httpd

Step 11: Open the Web browser and Enter the IP address as shown in the below image

Step 12:Create admin Account as shown in the below image

Step 13: This is the Dashboard page of Grav CMS

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to Install Grav CMS on Oracle Linux 8.5. Your feedback is much welcome.

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,Web Server (Apache, Nginx, LiteSpeed, Lightly, IIS, etc.),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.