Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'cPanel Developers' started by PeterTable, Nov 1, 2007.

  1. PeterTable

    PeterTable Member

    Joined:
    Feb 27, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    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)??
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice