php - Building a 'multi-site' application -


I am planning an application that allows users to create a specific type of website. Account.myapp.com ' Will work on a website going to 'account.myapp.com'. I do not have a clue on how to map it. I am using code igniter as my development tool.

Instead of using standard subdomains, I want to give users the ability to add a registered domain name to my website. Any tips / methods about this?

Besides, should I find some disadvantages and problems while doing some development with this design?

Thank you for your time!

Your plan for an app that works on all sites is quite a lot of work and lots of work It is not that it is not possible (including many Enterprise CMS, SharePoint, you are allowed to run from a single install 'Virtual Site' etc.).

You have a lot of planning and design on a particular security front, to ensure that different sites work in isolation. I think every site will have its own account - you will Want to work so that it can be ensured that users do not accidentally edit any other site (or maliciously)

and you are right to consider maintenance - if you Confidence is all sites that run under the same application, and therefore a single database, the database is going to be big and messy, it will very soon be a single point of failure.

A better plan will be to develop self-sufficient solutions (for a website) - it can then run from its own directory, with it your database has its own set of accounts, it will be quite small ( Both codes and databases in context) and therefore probably perform very well, day-to-day maintenance will be easy (restoring a website from backup), but software updates (adding a new feature) For areas) will be a little complicated, although it is as PHP, it just file upload and SQL patch, so you easily can do it automatically.

In the context of domains: If you went with an invidual app (a copy website) approach, then you can use the Apache feature, which effectively maps the URL to the file system. , (Hence the website can be translated for separating from website / home / vhosts / com / mydomain / website automatically): Thus, the deployment of a new website will have to be copied to the correct directory, Creating a Database and A The config file must be updated, all of which can be easily automated.

If users want to use their own URLs then they have to first update their DNS on their server and secondly you have to configure Apache vhost for that domain. , Which will probably include the restart of Apache and thus affect all other users.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -