Comments on How to Install Grav CMS on CentOS 7

Grav is a fast, simple, and flexible, file-based CMS platform. Grav comes with a powerful Package Management System to allow for simple installation and upgrading of plugins and themes, as well as simple updating of Grav itself.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: snake

After running nginx -t I get the following which looks correct, but in the browser i just get the default nginx test page.

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok

nginx: configuration file /etc/nginx/nginx.conf test is successful

 

It seems as if the php script won't run but: php --version shows php 7.3.6

so what can i do to correct this?

 

By: emile

I get this error:

emile@localhost grav]$ mv grav-admin/* . && mv grav-admin/.* .

mv: cannot move ‘grav-admin/.’ to ‘./.’: Device or resource busy

mv: try to overwrite ‘./..’, overriding mode 0755 (rwxr-xr-x)? y

mv: cannot move ‘grav-admin/..’ to ‘./..’: Device or resource busy

[emile@localhost grav]$ y

bash: y: command not found...

[emile@localhost grav]$ 

By: emile

Does not work for me. The admin stuff did not copy and I also skipped the certs, (should be ok right?) Then I changed my /etc/nginx/conf.d/grav.conf as follows:

server {

  

   listen 80;

 # listen 443 ssl;

 

  server_name localhost.localdomain;

  root /var/www/grav;

 

 # ssl_certificate /etc/letsencrypt/example.com/fullchain.pem;

 # ssl_certificate_key /etc/letsencrypt/example.com/private.key;

 # ssl_certificate /etc/letsencrypt/example.com_ecc/fullchain.pem;

 # ssl_certificate_key /etc/letsencrypt/example.com_ecc/private.key;

 

  index index.html index.php;

  

  location / {

    try_files $uri $uri/ /index.php?$query_string;

  }

  

  location ~* /(\.git|cache|bin|logs|backup|tests)/.*$ { return 403; }

  location ~* /(system|vendor)/.*\.(txt|xml|md|html|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ { return 403; }

  location ~* /user/.*\.(txt|md|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ { return 403; }

  location ~ /(LICENSE\.txt|composer\.lock|composer\.json|nginx\.conf|web\.config|htaccess\.txt|\.htaccess) { return 403; }

 

  location ~ \.php$ {

    fastcgi_pass 127.0.0.1:9000;

    fastcgi_split_path_info ^(.+\.php)(/.+)$;

    fastcgi_index index.php;

    include fastcgi_params;

    fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;

  }

 

}

 

-------------------->so what am i missing, because my browser won't display the next step ie the php script wont run.