Jump to:

4875 Posts in 7105 Topics by 1472 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Multiple Virtual hosts with Silverstripe

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

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

Page: 1
Go to End
Author Topic: 2181 Views
  • andreww
    Avatar
    Community Member
    4 Posts

    Multiple Virtual hosts with Silverstripe Link to this post

    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?

  • Kalileo
    Avatar
    Community Member
    127 Posts

    Re: Multiple Virtual hosts with Silverstripe Link to this post

    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.

  • andreww
    Avatar
    Community Member
    4 Posts

    Re: Multiple Virtual hosts with Silverstripe Link to this post

    Thanks for the advice. It all works fine.

    2181 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.