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.

Sorry, can you please help?

Discussion in 'General Discussion' started by milesdf, Jun 8, 2004.

  1. milesdf

    milesdf Registered

    Joined:
    Sep 22, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I am having problems getting the WHM backend to work:
    PHP:
    <?php
    require './usr/local/cpanel/Cpanel/Accounting.php.inc';
    $host "[I]localhost[/I]";
    $user "[I]username[/I] ";
    $accesshash'full access hash';

    $version showversion($host,$user,$accesshash,0);
    print_r($version);
    ?>
    gives me this error:
    Warning: main(./usr/local/cpanel/Cpanel/Accounting.php.inc): failed to open stream: No such file or directory in /home/username /public_html/accts.php on line 2

    Fatal error: main(): Failed opening required './usr/local/cpanel/Cpanel/Accounting.php.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username /public_html/accts.php on line 2
     
  2. coastinc

    coastinc Well-Known Member

    Joined:
    Mar 13, 2002
    Messages:
    159
    Likes Received:
    0
    Trophy Points:
    16
    On the line: require './usr/local/cpanel/Cpanel/Accounting.php.inc';

    remove the period before /usr.
    The line should read:
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
     
  3. milesdf

    milesdf Registered

    Joined:
    Sep 22, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    New Errors:

    Warning: main(): open_basedir restriction in effect. File(/usr/local/cpanel/Cpanel/Accounting.php.inc) is not within the allowed path(s): (/home/milesdf/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/milesdf/public_html/accts.php on line 2

    Warning: main(/usr/local/cpanel/Cpanel/Accounting.php.inc): failed to open stream: Operation not permitted in /home/milesdf/public_html/accts.php on line 2

    Fatal error: main(): Failed opening required '/usr/local/cpanel/Cpanel/Accounting.php.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/milesdf/public_html/accts.php on line 2
     
Loading...

Share This Page