4938 Posts in 16379 Topics by 1490 members
|Go to End|
4 May 2009 at 4:43pm
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?
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.
8 May 2009 at 10:27pm
Thanks for the advice. It all works fine.
|Go to Top|