I am setting up a website that needs to have multiple forums. I could just make three copies of the source files and set them up with a different database prefix. That however, just sounds too inefficient to me.
**this looks complicated, but yes i think you have to create 3 forum folder with different names and a database with different prefixes for each forum except the user table.
Oh, I forgot, I am managing the users externally with jsConnect, so I don't even need to worry about merging the users tables. Thanks for your help anyway.
You'll need 3 config files and 3 databases. You could use server config or symlinks to make 3 sites run off the same physical files, they'd just need to each access a different config file.
@lincon Ok, that sounds good. Is there any way that I can set a table prefix for the Vanilla tables so that I can run multiple installations of Vanilla on one database? I am using a free plan so I can only have two databases max.
Yes, you can change the table prefix in the config file. I think you can create a config.php file with the prefix in it before installing and it will respect that. I could, however, be making that up.
@kasperisagersaid (clicky):
I can confirm that symlinking everything except conf, cache and uploads works a charm. I'm now running two separate installations off the same codebase. Directory structure is as follows:
Comments
**this looks complicated, but yes i think you have to create 3 forum folder with different names and a database with different prefixes for each forum except the user table.
Good luck and keep us updated.**
Its simple if you just have three separate folders and three different schemas in you mysql instance.
Using the same source install for multiple separate forums would entail either
A) simply using roles and permissions to create two apparently separate forums using the same root path.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
Thanks for your help. I will check it out and see what comes up.
Oh, I forgot, I am managing the users externally with jsConnect, so I don't even need to worry about merging the users tables. Thanks for your help anyway.
You'll need 3 config files and 3 databases. You could use server config or symlinks to make 3 sites run off the same physical files, they'd just need to each access a different config file.
@lincon Ok, that sounds good. Is there any way that I can set a table prefix for the Vanilla tables so that I can run multiple installations of Vanilla on one database? I am using a free plan so I can only have two databases max.
Yes, you can change the table prefix in the config file. I think you can create a config.php file with the prefix in it before installing and it will respect that. I could, however, be making that up.
@lincon I'll see what I can do. Thanks for your help. Vanilla is awesome!
@yskywalker
If you done, please share with us your experience and we would appreciate if you write a how-to.
@Roben and others, check out this discussion.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Shameless self promotion:
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub