The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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,279
    Likes Received:
    8
    Trophy Points:
    38
    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.
     

Share This Page