[pmwiki-users] still can't get my farm working

Patrick R. Michaud pmichaud at pobox.com
Mon Mar 14 11:24:39 CST 2005


On Fri, Mar 11, 2005 at 04:44:12PM +0900, rickla wrote:
> I decided to delete everything and start again to eliminate any errors
> I made yesterday. But I've recereated the same problem.

I know this particular problem has been "solved" already, but wanted
to give my perspectives on a few answers also:

> 3. In pmwiki, renamed pmwiki.php as index.php (thanks for that
> suggestion, Neil!)

It's okay to rename pmwiki.php as index.php, but admins often forget
this when they upgrade.  Better is to create a symlink or shortcut
from index.php to pmwiki.php.  

> 4. Created first field directory, kumamotoefl , inside pmwiki directory.

Field directories can go anywhere, and aren't restricted to the pmwiki/
directory.  (They aren't prohibited there either.)

> 5. In pmwiki/kumamotoefl created index.php
> Content was <?php include('http://...full path to
> .../pmwiki/index.php'); ?>  [any problems with the syntax?)

Yes, this is what caused things to not work for you.  include() should
always contain a *file path* and not a url path-- i.e., there shouldn't
be an 'http://' in it anywhere.  Either an absolute file path
(/home/username/pmwiki/pmwiki.php) or relative file path (../pmwiki/pmwiki.php)
will usually work, although PHP doesn't understand ~username in file
paths.

I should probably update the WikiFarms documentation to make it clear
that the include statement wants a file path and not a url.

Pm



More information about the pmwiki-users mailing list