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.

cant access cpanel accounting

Discussion in 'General Discussion' started by grumble, Aug 17, 2005.

  1. grumble

    grumble Registered

    Joined:
    Aug 17, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi, Im trying to use php to remotely automatically create cpanel accounts, according to cpanel documentation I need to require /usr/local/cpanel/Cpanel/Accounting.php.inc
    however im with hostgator, and they wont give me access to the usr directory.

    Consequently when i try to require this file, i get the following error.
    File(/usr/local/cpanel/Cpanel/Accounting.php.inc) is not within the allowed path(s): (/home/grumble/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/grumble/public_html/share.php on line 4

    If i ask my host, to copy the accounting.php.inc file and move it into another directory--- will I then be able to access it , without any problems?
     
  2. grumble

    grumble Registered

    Joined:
    Aug 17, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    host wont let me access it :(

    I just emailed my host asking if they would move the file and i got this response

    "It is not pssible for your scripts to access Accounting.php, if you want to crate accounts automatically on server then we offer WHM Autopilot as free billing manager you can install it and use it, through this script your client can signup online and accounts will be created automatically on server, it will generate invoices automatically as soon as payment is due. To request for autopilot please fillup request form at http://hostgator.com/autopilot.php."

    this is kinda unusual i thought, dont most hosts give access to the USR folder??
    Ive tried WHM autopilot, and wasnt impressed-- too hard to customise for what i wanted it to do.

    So Im thinking of getting my money back and trying a new host. Anyone know any good ones which offer WHM?
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    AFAIK, you probably won't find one if it's a reseller account that you want. Having access to the remote access key (which you need for that module) effectively means that you have root access to the server. You'll need your won dedicated server if you want to go that route.
     
  4. Bytescanada

    Bytescanada Member

    Joined:
    Aug 31, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Try Eniki

    I have a reseller account with them and run phpcoin for my hosting signups which allows me to auto setup accounts.

    I am currently writting my own script to fit with the rest of my site.

    If you need shell access they will give it to you, it will be jail shell but that is all you need. You can get the access key right from the whm.

    They can be found at http://www.eniki.net and they have some awsome prices
     
Loading...

Share This Page