Reply to Re: setup question with open_basedir constraint

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация