I'm just making up my mind and doing some research on how to use the same application (files, directories) with different databases to build some kind of multi-tenant application with seperated databases. I'm not a friend of copying files from one directory to n other directories, one per client/tenant. So I was thinking about using the same files with different databases.
First idea was to change the database-related variables in config.php depending on to some $_POST variable coming from a new login page.
But this will not be enough because there are some overlapping parts:
- images directory being used for all uploads
- autmoatic database-migration after update using a file named setup.md5 per database
- SMTP settings for sending mails and membership-management (mm)
- the csv-files for custom dropdowns
- I'm afraid there will be more things to consider
I'm wondering if anyone else here has tried or at least thought about this, too. If so, please share your ideas so that we can collaborate on this topic.
Thanks in advance!
Best regards,
Jan