[pmwiki-users] Farms question (open_basedir restriction)

Tom Lederer pmwiki at celok.de
Thu Feb 8 11:33:15 CST 2007


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');
>>
>> Which is the correct path (also tried absolute path with same
>> effect).
>
> In order for wikifarms to work properly one has to use the
> absolute path.  I know you've already tried it with the absolute
> path and gotten a similar result, but could you provide the
> error message/warnings that come back when you use an absolute
> path instead of a relative one?  That would help a lot.
>
> Pm

Sure, whatever helps, though in http://www.pmwiki.org/wiki/PmWiki/ 
WikiFarms under the heading "Creating an additional wiki in your  
farm" it says absolute OR relative (just in case that really is wrong).

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

> [client xx.xx.xx.xx] PHP Warning: %v%v() [<a href='function.% 
> v'>function.%v</a>]: failed to open stream: Operation not permitted  
> in /srv/www/vhosts/celok.de/subdomains/rpg/httpdocs/index.php on  
> line 1

> [client xx.xx.xx.xx] PHP Warning: %v%v() [<a href='function.% 
> v'>function.%v</a>]: Failed opening '/srv/www/vhosts/celok.de/ 
> httpdocs/pmwiki/pmwiki.php' for inclusion (include_path='.:/usr/ 
> share/php5') in /srv/www/vhosts/celok.de/subdomains/rpg/httpdocs/ 
> index.php on line 1

Remark: the "%v%v() [<a href='function.%v'>function.%v</a>]:" part  
was in the other messages as well, i just didn't believe it to be  
important. Also the IPs are always shown (here replaced by xx)

Best Regards,
Tom



More information about the pmwiki-users mailing list