[pmwiki-users] flunking at farming

Crisses crisses at kinhost.org
Wed Dec 20 06:24:26 CST 2006


On Dec 20, 2006, at 4:46 AM, Ian Barton wrote:

> First of all, do you have access to somewhere on your web server that
> isn't web accessible? In other words somewhere you cannot access via a
> browser. If so this is probably the best place for your "base" PmWiki
> install.

I have

/var/www/
	eclectictech.net/
	kinhost.org/
	wikifarm/pmwiki/pmwiki.php

Virtual hosts are pointed to their proper root folders.

farmconfig.php is in

	wikifarm/pmwiki/local/

so my farmconfig.php is NOT in the same directory as my site's local/ 
config.php  -- it's in the farm's local folder.

/var/www/eclectictech.net/index.php is

	<?php
	include_once('/var/www/wikifarm/pmwiki/pmwiki.php');

/var/www/eclectictech.net/local/config.php also has:

	include_once("$FarmD/local/farmconfig.php");

hopefully something there is helpful :)

>> At the same level as my home wiki (home = http://www.wigl.com/jeb1/),
>> I have created a folder jf333/, with 755.  (These permissions match
>> those of my home wiki folder, jeb1/.)
>>
>>
>> In this jf333/ folder, I have created a file "index.php"  
>> containing only:
>>
>> <?php include('../jeb1/pmwiki.php');
>>
> This should probably be:
> <?php include('../jeb1/pmwiki.php'); ?>
>
> I assume the missing ?> is a typo in your email.

Actually, leaving off the closing PHP delimiter in a file is fine,  
and sometimes wise -- it eliminates the possibility of outputting an  
extra linefeed and screwing up the headers being sent to the browser  
later.

>> Finally, under the heading "Customization" on the WikiFarms
>> documentation page, the instructions describe a variable, $FarmD.
>>
> This is defined by PmWiki itself and is the directory of your base
> PmWiki install. You can use it as a shortcut in config files e.g.:
>
> include_once("$FarmD/cookbook/recipe"):
>
> It saves typing the full path to the directory. Note it does have  
> other
> uses and is used internally by PmWiki.

Every statement using $FarmD must be in double quotes " not single  
quotes '.  Sometimes directions on pmwiki.org are in ' and if you add  
$FarmD to the example configs it won't work unless you also change to  
double quotes.

Crisses




More information about the pmwiki-users mailing list