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

Multiple Virtual hosts with Silverstripe


Go to End


3 Posts   3055 Views

Avatar
andreww

Community Member, 4 Posts

4 May 2009 at 4:43pm

G'day,
I have ubuntu 9.04 server installed and I am hosting at present 2 virtual hosts. Eventually there may be another 3 or 4 domains hosted on my server. I would like both virtual hosts (domains) I have at present to have silverstripe. Both virtual hosts have their own user names in the Ubuntu system.
I know how to install on one host, but am not sure what would happen if I try to install on the other domain's virtual host.
Does anyone know if it's ok to do the same install routine on the second virtual host as the first?
Do I need to rename the mySql database for each virtual host?

Avatar
Kalileo

Community Member, 127 Posts

5 May 2009 at 12:48am

2 conditions you need to comply with:

1. Install in a different directory
2. Use a different database

Condition 1 you should automatically comply with, usually the different virtual servers use different directories.

Condition 2 is easy, just set up a second database, with a different name than the first one, and then tell each install just about one of these databases.

It should be also no problem to have a shared silverstripe or even cms directory, and just have symlinks in the virtual hosts directories to that shared silverstripe. That should work as long as you do not need to modify anything in these shared directories, and as long as your Apache is configured to follow symlinks.

Avatar
andreww

Community Member, 4 Posts

8 May 2009 at 10:27pm

Thanks for the advice. It all works fine.