How to Install Grav CMS on Oracle Linux 8.5
- 00:32 cat /etc/os-release
- 00:54 wget https://getgrav.org/download/core/grav-admin/1.7.34
- 01:05 ls -la
- 01:20 unzip 1.7.34
- 01:49 mv grav-admin /var/www/grav
- 02:10 chmod -R 775 /var/www/grav/
- 02:26 chown -R apache:apache /var/www/grav/
- 02:55 vim /etc/httpd/conf.d/grav.conf
- 04:32 systemctl restart httpd
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.
Comments ( 0 )
No comments available