Jump to content

open_basedir restrictions when using PEAR


Tandem

Recommended Posts

I'm having some problems trying to use PEAR packages. Whenever i try to use anything from the pear directory i get an error about an open_basedir restriction.

Here is the error:
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/HTML/BBCodeParser.php) is not within the allowed path(s): (/tmp:/home/***) in /home/***/testbb.php on line 7

The pear directory is one of my include paths so it's no that.

I am the root user so i have access to everything, could anyone suggest anything i could try to get it to work?

Thanks in advance.
Link to comment
Share on other sites

One of my include paths by default is /usr/share/pear which is my pear directory, and the file i am including is /usr/share/pear/HTML/BBCodeParser.php

I've been battling with this for days and treid almost everything so i think it must be something to do with configuration.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.