Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

New install folder confirmation

Started by David Colburn 3 years ago · 2 replies · 444 views
3 years ago

Platform is a raid1 configured Dell OptiPlex 7050 with Devuan Linux and nginx and ufw.
The goal is to serve a blog, web pages, and maybe some other things.
I did the preparation in Step 4 here https://www.techlear.com/blog/2019/07/05/how-to-install-grav-cms-with-nginx-on-debian-9/
Then I followed grav install instructions here https://learn.getgrav.org/16/basics/installation ...
I downloaded the .zip and moved it to /var/www/grav then unzipped it.
It created a new directory/folder /var/www/grav/grav-admin
Then I ran

BASH
sudo chown -R www-data:www-data /var/www/grav

Question: Is that all correct?

last edited 12/27/22 by David Colburn
3 years ago

When you go to your website for the first time do you get the create admin login page?
If so its probably alright as the initial page does check that most features are installed.

3 years ago

When you refer to "your website" I think that because this is a server install - that I may have missed a step.

I presume that the default ~/user/pages/01.home/default.md page isn't expected to display at "localhost" but, rather, at the URL I provided when I set up Devuan in Server mode and (I think) that I may have provided to nginx when installing it?

Or, am I getting ahead of myself and over-thinking this at this step?

EDIT1: I read, somewhere, that grav cannot be run without a theme and there's no default theme - so, In Linux:
ln -s user/themes/quark /var/www/grav-src/user/themes/quark solves that. Is this old and a default theme is now installed?

EDIT 2: I read in the grav configuration documentation that I may need to add a custom_base_url: ' ' to ~/user/config/system.yaml

EDIT 3: Was this a correct or incorrect thing to do? "Change ownership of the /var/www/grav directory to www-data:

BASH
sudo chown -R www-data:www-data /var/www/grav
```"

EDIT 4: Step 3 here [https://www.techlear.com/blog/2019/07/05/how-to-install-grav-cms-with-nginx-on-debian-9/](https://www.techlear.com/blog/2019/07/05/how-to-install-grav-cms-with-nginx-on-debian-9/) says Run sudo vim /etc/nginx/sites-available/grav.conf and populate the file with the following configuration:

TXT
server pl

Activate the new grav.conf configuration by linking the file to the sites-enabled directory.

BASH
sudo ln -s /etc/nginx/sites-available/grav.conf /etc/nginx/sites-enabled

Check NGINX configuration for syntax errors:

BASH
sudo nginx -t
TXT

The "sudo nginx -t" test generates a "test failed" error.
last edited 12/27/22 by David Colburn

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 11 hours ago
5 59 5 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 60 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 61 8 months ago
Installation & Hosting · by N, 12 months ago
3 71 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 60 1 year ago