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.

Support

Changing the default user folder location

Started by mikael 8 years ago · 1 replies · 528 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 Thomas, 1 week ago
2 51 7 hours ago
Support · by Anna, 2 days ago
2 58 10 hours ago
Support · by Justin Young, 11 hours ago
1 30 11 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 55 5 days ago