I created a custom, special CMS, with many customers, each their own domain name, website, admin area and Databases, but all live on the same server.
Every time I get a new customer, I just copy all the codes, change the 3 lines in a config file, and then upload all their styles / data from the database or upload it The uploaded is removed from your own admin area on the server.
Great seems so far right?
When I recently decided to update all the customers, it became a major pain. Obviously I had to change the code on every install. It's okay to make a big update, but to get tweaks or likes again and again, it becomes very annoying to repeat the attempt to upload .... I hope that there will be dozens or hundreds of customers someday The code will ultimately be centralized, it is updated in one place and updated everywhere ... How does that happen?
The source code should be inserted into the subdirectory, except for one easy solution files, which each Change for client (for example, config file).
Then you can put this source code directory somewhere and just create the symlink for it.
For example, your directory structure might look like this:
/var/www/src/index.php/ var / www / src / more_source Php / Var / www / clients / client_a / settings.php / var / www / clients / client_a / src - & gt; ../../src/ /var/www/clients/client_b/settings.php / var / www / clients / client_b / src - & gt; ../../src/
If you select this structure, then you have to change only one thing, which requires settings.php (like "Settings.php"
requires "../ settings.php"
).
Comments
Post a Comment