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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How to find /mysite/ directory


Go to End


4 Posts   535 Views

Avatar
mako.cal

Community Member, 2 Posts

19 June 2015 at 5:03am

Hi, I'm trying to make some changes to my _config.php file so I can add some schema to my site but I am having trouble finding my /mysite/ directory - is there a file where the /mysite/ directory would be defined or how would I go about finding out which directory is the /mysite/ directory?

Avatar
helenclarko

Community Member, 166 Posts

19 June 2015 at 11:51am

Hi Mako.cal,

Who is your hosting with?

If it was a local copy through xampp, you will find all your files within "htdocs".
However when it comes to hosting on the web, if you have root folder access you may find an "public_html" folder which will have your "mysite" folder among other folders inside.

-helenclarko

Avatar
Pyromanik

Community Member, 419 Posts

19 June 2015 at 10:01pm

The mysite folder sits in the installation root.
eg.
assets/
cms/
framework/
mysite/
themes/

It can however be altered. You will need to find a module with _config.php in it's base (so foldername/_config.php)
where this _config.php has:

global $project;
$project = 'foldername'

cf. https://github.com/silverstripe/silverstripe-installer/blob/3.2/mysite/_config.php#L4

grep or some other search tool will help here.

Avatar
mako.cal

Community Member, 2 Posts

20 June 2015 at 3:38am

It seems that the developer who originally installed the CMS renamed the folder to /app/