| Multiple domains using the same PHP scripts I've got a United Hosting reseller account, and I have a small number of domains hosted on it. They all use the same PHP scripts and database structure, so what I'd really like is to have all of these domains pointing to the same place for web content, and I'd like to serve it using a single set of PHP scripts and a single MySQL database. However, I would also like to keep the functionality of separate domains: email, ftp, and things like that.
Each of the domains, naturally, points to its own isolated directory, so if I want to run identical scripts on x.com and y.com, I have to have copies of the scripts at both of those domains. I don't really want that because
(a) when I update my scripts, I have to change them in more than one place, which is inelegant (and time consuming, because my scripts are rubbish and I keep needing to update them); and
(b) I want users to have control of their domain and its email and ftp etc, but not to have access to my immaculate scripts.
I thought I could set up aliases so that domains x.com, y.com and z.com all really go to a.com. The problem with that is that I would surely lose the functionality associated with a proper separate domain for x, y and z.com.
So I really want the best of both worlds: I want to have a full, normal, lovely UH installation for each domain, but I also want to have all web content served from the same set of PHP scripts in the same installation. Does a nice solution exist? I can see why it might not be doable, but on the other hand I can't be the only person who want a setup like this, so I worry that I've just missed something obvious...
Last edited by cupoftea : 11th August 2008 at 10:01 PM.
Reason: typos + unclear explanations
|