Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I'm trying to put my code and theme in the custom name folder - I've freshly installed SS and configured it, then I've changed folder name and config files in customname/_config.php
$project = 'customname';
All I get is:
Warning: require_once(/home/stage/public_html/mysite/_config.php): failed to open stream: No such file or directory in /home/stage/public_html/framework/core/manifest/ConfigManifest.php on line 141
Fatal error: require_once(): Failed opening required '/home/stage/public_html/mysite/_config.php' ...
Where this path location is set? I cannot see it in any settings at all.
I believe 'mysite' is a required folder.
The name of folders within the root is very important.
The folder you want to change the name of is likely under the 'theme' folder.
Under theme you might have 'simple' (as default theme), you can change 'simple' to anything you like.
I have another instance of SS (completely different website bult 2-3 years ago) where all code is in custom named folder (but not sure if it's SS 3.0 or 3.1).
Also please see
https://docs.silverstripe.org/en/3.2/getting_started/directory_structure/ - Custom Code Structure section which says:
We're using <mysite> as an example - arbitrary directory-names are allowed, as long as they don't collide with existing modules or the directories lists in "Core Structure".
Renaming the mysite folder works fine. I do it all the time.
Warning: require_once(/home/stage/public_html/mysite/_config.php): failed to open stream: No such file or directory
You need to do a /dev/build/?flush
Such a simple solution and so many struggles! :)
Remember people! Flush, always flush ;)