Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Changing the default user folder location

Started by mikael 8 years ago · 1 replies · 827 views
8 years ago

Hey good people!

I have a technical question about the default folder locations in Grav.

What i want to achieve is to have the user folder in a folder outside of Grav root.

Like this:

  • Project root
    -- Assets
    --- Grav root
    -- Development
    --- grav user folder

At the moment i believe that

grav_root/system/defines.php

is my best hope. I have tried to the best of my logic to change it to look for the user folder in another location, but to no avail.

I have also found that streams can be used to change locations or add locations, but I can't understand how to do it to solve my problem.

Thank you very much for any info regarding this!

8 years ago

Depending on your hosting environment and permissions you could try to use a symbolic link.

Sadly a test reveals that although at first sight the site works fine using a symlink updating plugins and possible other actions, fail.

During a plugin update Grav reports in a red popup: "The target path "..." is a symbolic link", which is absolutely correct.

Suggested topics

Topic Participants Replies Views Activity
Support · by complanar, 6 days ago
6 139 16 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 51 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago