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?
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.
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.
Thanks for the advice. It all works fine.