Using a PHP CMS across multiple subdomains

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gillbates
Forum Newbie
Posts: 1
Joined: Sun Jul 13, 2003 5:48 pm

Using a PHP CMS across multiple subdomains

Post by gillbates »

I'm interested in putting up a performance automotive site to support an interest my friends and I share. I presume to acquire an appropriate hostname and then setup subdomains for each project.

mustang.hostname.org
corvette.hostname.org
jaguar.hostname.org
firebird.hostname.org
pantera.hostname.org
etc.

I would have one CMS (content management system) loaded at hostname.org and each subdomain could exist separately. The guys working on the mustang would logon to mustang.hostname.org and the CMS would provide picture galleries, downloads, articles, forums, etc. of mustangs only. Tabs along the top would allow user to move to other subdomain (ie. click the pantera tab at the top of the mustang.hostname.org page and be moved to pantera.hostname.org).

No one seems to support this though and dumps everything in one area. Do I need to setup 10 separate instances of the CMS with 10 separate databases? Seems very wasteful. Anyone know of a stable PHP/MySQL app that could handle this?

Thanks

Gill Bates
gillbates@myrealbox.com
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

I dont know if any existing systems support such but it shouldnt be a problem to just widlcard dns and host it all on the same IP'd account (or if IP-less add all possible ones to use the same file area), and them simply make the cms load different themes and files depending on what domain was requested ($_SERVER['HTTP_HOST'])
Post Reply