Posted by Colin McKinnon on 06/27/05 11:27
DJ Majestik wrote:
<snip>
>
> Then under /site1 and /site2 I would have symlinks (or php files with
> include files in them) that would point to the same file in /mainsite
>
> /site1
> config.php - pointing to /mainsite/config.php
> index.php - pointing to /mainsite/config.php
> ...
>
> Same for /site2
>
> Problem is I have open_basedir set, so that I can't get to
> /mainsite/config.php from /site1/config.php
>
> What are some of my options for setting this up? This would allow me to
> essentially have one code base, and then anytime a site (say site1)
> wanted a custom config.php file, I could replace the symlink config.php
> file with one created just for them, but the rest of the code would
> still be from the main code base.
If they're on the same filesystem, you could use hard links instead - but
it's kinda messy. Anything other than copying the files or changing the
open_basedir or document roots is going to be a bit of kludge.
C.
[Back to original message]
|