[pmwiki-users] Wiki Farm Problems

Patrick R. Michaud pmichaud at pobox.com
Thu Mar 6 17:57:27 CST 2008


On Thu, Mar 06, 2008 at 03:29:27PM -0700, Dr. Jonathan Sprinkle wrote:
>    Fundamentally, I was still unable to use local/config.php options in any
>    farm field. This was with v 2.1.27 and 2.2.0-beta65. I created files only
>    as prescribed in the wiki farms instructions page.
> 
>    My fix is described at the bottom of this page:
> 
>    http://www.pmwiki.org/wiki/PmWiki/WikiFarms

Also, you may be able to fix it (without modifying pmwiki.php or
changing PHP's include_path setting) by putting the following into 
your farmconfig.php:

    $LocalDir = getcwd() . '/local';

The farmconfig.php file is loaded after $LocalDir is set, so there's
no need to change PmWiki to use an SDV() on this variable.  And
farmconfig.php is loaded before $LocalDir/config.php, so the
setting made in the farm config will take effect.

Pm




More information about the pmwiki-users mailing list