Subject: Multiple Geeklogs with shared code?
Posted on: 11/06/09 11:08pm
I've been playing with the thought of running multiple Geeklogs on a single server, and wondering if it could be done without installing multiple copies of the Geeklog code.
Having all the config stuff in the database in 1.5 helps. I'd start with some scheme for mapping the URLs for each Geeklog to a unique pair of siteconfig.phg and db-config.php, which would point to a unique database for each site. But it might get a little trickier than that.
The default setup has a mixture of site-independent stuff ("code"
and site-dependent stuff ("data", logs, etc) in /path/to/geeklog. I haven't looked at all the path settings in the config db yet to see how easy it would be for multiple sites to point to a single directory (or set of directories) for site-independent stuff, and unique directories for stuff that varies between sites.
At this point, this is mostly an academic question for me. I don't really have a need for multiple sites right now. And if I do, the amount of disk space wasted by the simple technique of just replicating everything might not be big enough to worry about. But I'm a geek, and sometimes I like to waste a lot of time trying to do things the "right" way instead of the easy way, and it seems right to avoid duplication of code.
Has anybody tried this, or thought about it enough to have any thoughts on whether it's a reasonable idea?
Re: Multiple Geeklogs with shared code?
Posted on: 12/06/09 04:18am
Geeklog - Forum