bastianallgeier/kirbycms — Issue #6: Path to Content Directory Cannot Exist Above Docroot
Author: codeguy
Created: 2012-02-08 00:18:47+00:00
State: open

I have a default install of Kirby. I moved the `content/`, `kirby/`, and `site/` directories above the docroot for security. As indicated in `index.php`, I should be able to move these directories anywhere I want so long as I correctly specify the paths to those directories.

I changed line 63 in `index.php` to read `$rootContent = $root . '/../content';`. Yet I still see `The Kirby content directory could not be found`. In `kirby/system.php` I added this code to line 29 (just before you check if the content directory exists):

echo $rootContent;
echo c::get('root.content');
die;

The first statement outputs:

/Users/joshlockhart/Sites/slim/content

And the second statement:

/Users/joshlockhart/Sites/slim/public/content

Either I actually cannot move the content directory as your `index.php` file says, or the path is getting malformed elsewhere in your code. Thoughts?

Thanks,
Josh