• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

web application question

redd38

Gawd
Joined
Jan 30, 2001
Messages
517
I'm building a web application that I'm offering as a hosted solution... so someone would point their domain to my server and pay me some money each month and they would get to use this application on their domain. So I see 3 plausible ways to set this up on my server (just a shared hosting account).

1) Each domain has its own root directory with its own files and each domain gets its own database. This would keep everything separate but would be difficult to make updates since i'll have many instances of the application

2) All the domains would point to the same root directory and use the same actual files, but each domain would get its own database. That would make updates easier and keep all the actual data for site separate.

3) All the domains point to the same root directory and use the same actual files and they all share one database.


Would there be a performance drop if all the sites are using the same files? Anyone have any thoughts or advise? Thanks
 
I work with someone that does this he, uses your third option where everything is one one database and with only one application directory.
It probably would be best performance wise to have everything sharing the same resource then multiple hard to update instances.

All I see you would need to do to get this working properly is have all the domains pointing to one directory and then with php retrieving the domain with $_SERVER['HTTP_HOST'] ( which differs with whatever language you are going to use ) and serving the proper information.
 
Back
Top