Is it possible that 2 or more site can share one user database?
by just changing the prefix and user prefix in the config?
foxyfemfem Support Staff
Joined: Jan 23, 2003
Posts: 668
Location: USA
Posted:
Fri Apr 11, 2003 2:38 am
Hello,
I have 3 domains (.org, .net and .com) the only way .net & .com are sharing .org database is because I have .net & .com as parked domains with my host under the .org account which is used as my primary domain.
(.net & .com) are used by partners to offer my members free website (.net) and free email (.com). Although I don't think they could share the same database if I had .net or .com hosted by another company or the same company under another database name (ie: .org database name foxy) if .com database name was foxyfem I think it would be a conflict to call something from foxy database whereas .com database would be foxyfem. Of course thats my unprofessional thought.
Nuke-SG Private
Joined: Jan 14, 2003
Posts: 44
Location: Singapore
Posted:
Fri Apr 11, 2003 3:53 am
I was talking about the site are host under the same server and using the same database with difference prefix, name "nuke" and "abc".
I would like the site using prefix "abc" to use the user data in the prefix "nuke" instead of "abc". So that both share the same user.
how to do it any advise?
foxyfemfem Support Staff
Joined: Jan 23, 2003
Posts: 668
Location: USA
Posted:
Fri Apr 11, 2003 4:29 am
Hello,
All three of my domains are hosted by the same company utilizing the same server. If I contacted my host and said I want .com to share .org database I think they would say impossible because .com has its own database name (foxyfem) and .org has its own database name (foxy). Now if I want .com to share .org database (in which it does) its because I have .com parked under the .org account. Maybe your host will allow it but most hosts give each domain their own database.
www.whatever.com can not use data from www.whatever.org database (utilizing the same server), if thats the case I'd be able to use nukecops.com database files if I were using the same server their using (major security risk).
My host will give me as many databases as I need for my website. (ie: if i needed an extra database for .com I would have it but not with the same database name as .org)
addendum: Now someone please correct me if I'm wrong but that appear to be a major security risk for two domains to share the same database unless the situation is like mine (.com is a parked domain not utilized at all other than by my registra for the MX record only).
Nuke-SG Private
Joined: Jan 14, 2003
Posts: 44
Location: Singapore
Posted:
Fri Apr 11, 2003 8:46 am
2 difference wedsite is possible to use the same database for your info.
You could have www.abc.com and www.abc.net running in the same database "abc" as long the server host are the same. Mean If you have only one wedsite (abc.com) with database, and the others one(abc.net) do not have, if both are having the same server host it is possible that abc.net can use the abc.com database by using 2 difference prefix in one database. That depend on yours hosting server.
Now back to my question, I have try with the both site set to the same user prefix in the same database, it seen working, but have problem with log out, but what worry me is it will create unforseen problem and error later.
Do any one have try and have success without problem?
If you succeed at it please share with me how you did it under two different accounts www.abc.net utilizing www.abc.com database without one or the other being a parked domain (virtually non existence).
If a hacker tamper with www.abc.net database I guess they can kill two birds with one stone abc.net & abc.com since they're both using the same database. major security risk
Mighty_Y Sergeant
Joined: Feb 27, 2003
Posts: 94
Posted:
Fri Apr 11, 2003 9:38 am
You can, I did saw someone doing it:
You have to set it up like this:
Config.php for site 1:
You have to do this otherwise your forumtables will be shared too.
I only tested it one time so please let me know if you find some bugs
Bye,
Mighty_Y
foxyfemfem Support Staff
Joined: Jan 23, 2003
Posts: 668
Location: USA
Posted:
Fri Apr 11, 2003 9:49 am
Mighty Y, If I did that for .org, .net & .com then some wannabe hacker come along tamper will my database, would it effect all of my domains?
If I have nuke_users under .org how would nuke_users be shared with .com without me copying the nuke_users file to nuke2_users?
Mighty_Y Sergeant
Joined: Feb 27, 2003
Posts: 94
Posted:
Fri Apr 11, 2003 10:02 am
I have forgotten to say something:
You must have your 3 sites on the same server using the same database.
And then you have to install nuke 3 times into that same database and then you have to do the instructions as I said above.
Please repley again if this was not the answer on your question
foxyfemfem Support Staff
Joined: Jan 23, 2003
Posts: 668
Location: USA
Posted:
Fri Apr 11, 2003 10:16 am
Install nuke 3 times, park domains under one account, install nuke 3 times, park domains under one account (lazy mode) I'll keep my other two domains parked under my one account and everybody share everything with one installation.
Note: I'll like to see the website that utilize Mighty Y's method. I can signup on one site and have access to both sites. Wow!
Mighty_Y Sergeant
Joined: Feb 27, 2003
Posts: 94
Posted:
Fri Apr 11, 2003 10:19 am
There is one (I helped to set it up) but he is still working on it. For someone interested to know who has a website like that it is ConKien on Nukemods and Portedmods.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum