[pmwiki-users] Farms question (open_basedir restriction)
Patrick R. Michaud
pmichaud at pobox.com
Mon Feb 12 12:57:46 CST 2007
On Thu, Feb 08, 2007 at 06:33:15PM +0100, Tom Lederer wrote:
>
> Am 08.02.2007 um 16:54 schrieb Patrick R. Michaud:
>
> >On Thu, Feb 08, 2007 at 02:46:15AM +0100, Tom Lederer wrote:
> >>Hi,
> >>
> >>after following the instructions on http://www.pmwiki.org/wiki/
> >>PmWiki/WikiFarms, i have put a file in the new directory for
> >>the new field:
> >>
> >>> <?php include('../../../httpdocs/pmwiki/pmwiki.php');
> >>
>
> Here is the error message, that IMHO just looks the same just with
> absolute paths:
>
> >[client xx.xx.xx.xx] PHP Warning: %v%v() [<a href='function.%
> >v'>function.%v</a>]: open_basedir restriction in effect. File(/srv/
> >www/vhosts/celok.de/httpdocs/pmwiki/pmwiki.php) is not within the
> >allowed path(s): (/srv/www/vhosts/celok.de/subdomains/rpg/httpdocs:/
> >tmp) in /srv/www/vhosts/celok.de/subdomains/rpg/httpdocs/index.php
> >on line 1
Taking the warning at face value, it's saying that the pmwiki
software isn't in the path given by PHP's open_basedir configuration
variable. In particular, open_basedir seems to be set to
/srv/www/vhosts/celok.de/subdomains/rpg/httpdocs:/tmp
which means that PHP will only include files that appear in
the /srv/www/vhosts/celok.de/subdomains/rpg/httpdocs or /tmp directories.
Since /srv/www/vhosts/celok.de/httpdocs isn't a subdirectory of either
of those, PHP is denying the include.
I'd say to try changing the include_once() line to a path that
is in the basedir, or see if you can get the open_basedir restriction
changed or removed.
Pm
More information about the pmwiki-users
mailing list