Cannot include /usr/local/cpanel/Cpanel/Accounting.php.inc

Discussion in 'Site & Server Administration' started by sunnie, May 2, 2008.

  1. #1
    Hello. I'm using a remote cPanel account creation script for my site, but including /usr/local/cpanel/Cpanel/Accounting.php.inc fails. I am getting this error:


    Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/cpanel/Cpanel/Accounting.php.inc) is not within the allowed path(s): (/home/teakene:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/teakene/public_html/subdo/order/Welcome.php on line 3


    Could anyone tell me how to fix this problem?
     
    sunnie, May 2, 2008 IP
  2. ilovelinux

    ilovelinux Peon

    Messages:
    285
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The open_basedir function defines the locations or paths from which PHP is allowed to access files using functions like fopen() and gzopen(). If a file is outside of the paths defined by open_basdir, PHP will refuse to open it. You cannot use a symbolic link as a workaround, because the path that the symbolic link resolves to falls under the restrictions of the open_basedir function.

    You should turn off open_basedir restrictions.
     
    ilovelinux, May 2, 2008 IP
  3. sunnie

    sunnie Well-Known Member

    Messages:
    350
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    #3
    How should I go about turning it off?
    I'd also like to add that I don't think I have access to the php.ini file because I'm have a reseller account instead of my own server.
     
    sunnie, May 2, 2008 IP
  4. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you are reseller, I'm afraid that you can't get this removed due to security reasons. You might want to speak to your provider and see if they can do it for you. If not, you have to get a VPS to develop your scripts. :)
     
    tanfwc, May 3, 2008 IP