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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Conflicts when running silverstripe for two sites on one server!!


Go to End


5 Posts   2356 Views

Avatar
vintagescooter

Community Member, 8 Posts

1 July 2009 at 2:45am

Hi
I managed to get silver stripe running fine on my server im really impressed but the problem is I now want to run a second website with a separate copy of silver stripe installed.
The problem I am now facing is that after the install is complete the original site picks up the content from the new mysql database. If I run the flush command the site functions fine again with the original content but then the new site is broken.

Any suggestions on what could be causing these conflicts?

Any help will be much appreciated

Thanks,
Chris

Avatar
bummzack

Community Member, 904 Posts

1 July 2009 at 8:03pm

Edited: 01/07/2009 8:06pm

Hi Chris

Each SilverStripe installation needs its own Database. Make sure you create a separate DB for your new Site.
If your Hosting Provider only allows you to have a single DB, you should have a look at this forum thread: http://www.silverstripe.org/general-questions/show/262447

Update And don't forget to change the _config.php files accordingly (Site A uses Database A credentials and Site B uses Database B credentials)

Avatar
vintagescooter

Community Member, 8 Posts

1 July 2009 at 11:32pm

Thanks for the reply, I don’t think that is the issue as im running it on my own inhouse server running windows 2003 and i have two separate databases setup, its as if there is a cache of some sort that both sites maybe using??

Avatar
Sam

Administrator, 690 Posts

2 July 2009 at 12:13am

Try putting a silverstripe-cache folder into each of your web root directories (next to sapphire, cms, and jsparty).

Avatar
vintagescooter

Community Member, 8 Posts

2 July 2009 at 12:18am

Nice one that has fixed it, thanks that has saved allot of my hair haha

Thanks,
Chris