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

Using one source on multiple sites


Go to End


2 Posts   1298 Views

Avatar
kingscorp1712

Community Member, 1 Post

23 November 2009 at 5:19pm

I was wondering if there was any way to run multiple Silverstripe sites (all with different themes, databases, users and content) from one source? It would be a great way to set it up to update quickly as by updating one source all sites are upgraded.

Avatar
bummzack

Community Member, 904 Posts

24 November 2009 at 8:15am

Yes, it's possible. I do this for local development of sites, where I use a single SilverStripe codebase for all projects. I even got a script that automatically creates a new site folder for me, creates a new DB, modifies .htaccess and _config.php accordingly and runs /dev/build in the end. Thanks to that, setting up a new Site is a matter of a few seconds :)
This thread might give you some pointers: http://silverstripe.org/general-questions/show/251650

The symlink approach works on Linux/Unix/BSD Systems only. Never tried this on windows, but this might help: http://www.mydigitallife.info/2007/05/22/create-symbolic-links-hard-links-and-directory-junctions-in-vista-with-mklink/

If you want to do this on your Webserver, you probably need shell/ssh access.