Joomlatools Support Center

Warnings - Open basedir restriction in effect

A user noticed the following errors when accessing the Docman category layout.

Warning: include_once() [function.include-once]: open_basedir restriction in effect. File(/usr/local/lib/php/PEAR5.php) is not within the allowed path(s): (/home/sergginc/:/tmp/) in /home/sergginc/domains/ on line 766Warning: include_once(/usr/local/lib/php/PEAR5.php) [function.include-once]: failed to open stream: Operation not permitted in/home/sergginc/domains/ on line 766Warning: include_once() [function.include]: Failed opening 'PEAR5.php' for inclusion (include_path='.:/usr/local/lib/php') in/home/sergginc/domains/ on line 766

The page in question is here:

The errors only occur on Docman pages. I've updated to the most recent version of Docman 1.5.15.

See screenshot for other pages with the same error.


Posted 7 years ago by Johan Janssens Staff

Hi Andrya, your server is running with open base dir restrictions and is not properly installed. DOCman is looking for PEAR.php.

It finds the file in /home/sergginc/domains/ and this file tries to load /usr/local/lib/php/PEAR5.php which is not allowed by your server as the usr/local/lib/php path doesn't lie within your open base dir directories.

This is a problem only your hosting company can fix for you. They need to add usr/local/lib/php to your open base dir directories to solve it.

There are 4 more comments in this ticket.
Subscribe or login to join the discussion!

Adrya Stembridge

System Information