[pmwiki-users] Path problem running in chroot'd environment

brian at pongonova.net brian at pongonova.net
Fri Nov 25 12:06:05 CST 2005


No luck...I'll continue to poke around.  Given that PHPX and WordPress
are running without issues, I'm confident the environment is OK and
the problem has to do with the dirnames that PHP is returning.  I was
reading on php.net that different minor versions of PHP implement
dirname() differently (I'm running 4.3.3), so that's the direction I'm
looking at now.

I'd certainly like to hear from others, though, who are successfully
running pmwiki on OpenBSD in a chroot jail...don't seem to be too many
out there.


On Thu, Nov 24, 2005 at 11:36:59PM -0600, Patrick R. Michaud wrote:
> On Thu, Nov 24, 2005 at 09:35:00PM -0600, brian at pongonova.net wrote:
> > On Thu, Nov 24, 2005 at 06:21:42PM -0600, Patrick R. Michaud wrote:
> > > If it's not rendering correctly, the problem may be with the
> > > setting of $PubDirUrl (and possibly $FarmPubDirUrl).  
> > > 
> > > Is there a url we could view for this?
> > 
> > 
> > http://durango.dcccd.edu/pmwiki
> > 
> > Nothing much to see at the moment :)  I'll take a look at those two
> > vars... 
> You might re-check your setting of $FarmD, as well.  It needs
> to be set to the directory containing pmwiki.php as seen from
> the chroot jail.  It doesn't even have to be a full path name,
> you might be able to get away with setting $FarmD='.'  .
> You're only seeing the basic text because none of the files in 
> scripts/ appear to be loaded, and it's not finding the 
> wikilib.d/ directory containing the distribution pages.
> Or, perhaps the PHP script isn't being executed from the directory
> containing pmwiki.php -- this can often be fixed with a wrapper
> script:
>     <?php
>       chdir("/path/to/pmwiki");
>       include_once('pmwiki.php');
> Pm

More information about the pmwiki-users mailing list