Answer the question
In order to leave comments, you need to log in
How to make a multi-tenant application from a regular PHP application? Are there ready-made frameworks for such a task?
It seems that the task should be quite frequent, but so far it is not possible to formulate a question that would help to find the answer in Google.
There is a web application that is designed without support for multiple accounts. And you need to make it possible for users to receive the functionality of this application when registering on the site, but independently of other users.
The decision to make for each user the "copy" of this web application arises. It seems to be enough to make your own database for each user. Thus, when registering a user, we create our own database for him (and, possibly, our own directory with configuration files). When entering the site, the user is redirected to this web application so that it works with the database and configs of this user (you may need to slightly add a web application so that it takes the database based on the user's registration data - this is acceptable).
There are two questions:
1) Is this a normal solution, or is there a better solution?
2) It seems to be a typical problem. Are there any ready-made systems or libraries that already have these functions? (I mean, the process of creating/deleting a database with structure and files, connected to user management. It seems to be something like hosting.)
Answer the question
In order to leave comments, you need to log in
Remove http2 from listen 80 .
In theory , http2 can work without SSL, but in practice, not a single http client (browsers, etc.) can and is not going to do this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question