Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Changing the default user folder location

Started by mikael 8 years ago · 1 replies · 959 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 webmasterodp, 2 weeks ago
4 256 2 weeks ago
Support · by nwhitfield, 3 weeks ago
2 222 3 weeks ago
Support · by stell, 4 weeks ago
5 469 3 weeks ago
Support · by gravinator, 2 months ago
5 646 3 weeks ago
Support · by Gravver, 1 month ago
6 437 1 month ago