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.

Customising the CMS /

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

Multiple Sites, One Install...

Go to End



Community Member, 5 Posts

28 May 2009 at 12:15am

I'm wondering if anyone can help clarify this issue for me. Getting Silverstripe running off one codebase seems a common question in the formus, but no clear resolution... I am trying to get Silverstripe working off one codebase to make updating multiple sites easier. All the core directories/files are referenced back to one location using symbolic links for each SS install. Everything works great, except when the sapphire folder is moved outside the directory root (eg /var/silverstripe/), it breaks as the assets folder is being looked for with a relative url, relative to the document root. From what I can make out from other forum posts, changes need to be made to the gd.php, files.php and folders.php files in the sapphire framework to make sapphire follow an absolute path to the assets directory instead of relative. My question is what changes need to be made??? Can anyone who has got this working help?? This would be a great addition to commit to the SS core at some stage as there seems to be alot of questions regarding this issue.