open_basedir restriction in effect trying to access cPanel::Accounting PHP Module

PeterTable

Member
Feb 27, 2004
8
0
151
Hello

While trying to make the example from the cPanel::Accounting PHP Module run, I get an open_basedir error

Warning: require() [function.require]: open_basedir restriction in effect. File(/usr/local/cpanel/Cpanel/Accounting.php.inc) is not within the allowed path(s): (/home/test:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/test/test1.php on line 3


How do I make this script work from a normal webpage (apache/PHP5)??
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,214
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hello

While trying to make the example from the cPanel::Accounting PHP Module run, I get an open_basedir error

Warning: require() [function.require]: open_basedir restriction in effect. File(/usr/local/cpanel/Cpanel/Accounting.php.inc) is not within the allowed path(s): (/home/test:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/test/test1.php on line 3


How do I make this script work from a normal webpage (apache/PHP5)??
If you wish to keep open_basedir, I would recommend using our newer XML API instead of the old cPanel::Accounting system (WHM API).

Documentation for the XML API can be found at http://www.cpanel.net/plugins/devel

The XML API requires cPanel 11.