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

Changing the default user folder location

Started by mikael 8 years ago · 1 replies · 741 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 Anna, 20 hours ago
1 57 13 hours ago
Support · by gtx, 1 week ago
4 230 2 days ago
Support · by Paul Hodges, 2 weeks ago
13 277 5 days ago
Support · by Anna, 3 weeks ago
9 336 1 week ago
Support · by TomW, 2 weeks ago
4 190 2 weeks ago