How To Install Grav Cms On Centos 7.6
- 00:35 rpm -q centos-release
- 00:51 wget https://github.com/getgrav/grav/releases/download/1.4.3/grav-admin-v1.4.3.zip
- 01:10 unzip grav-admin-v1.4.3.zip
- 01:24 mv grav-admin /var/www/grav
- 01:34 chown -R apache:apache /var/www/grav
- 01:45 chmod -R 755 /var/www/grav
- 01:59 vim /etc/httpd/conf.d/grav.conf
- 03:06 systemctl restart httpd
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
Comments ( 0 )
No comments available