grumble

Registered
Aug 17, 2005
3
0
151
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?
 

grumble

Registered
Aug 17, 2005
3
0
151
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?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
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.
 

Bytescanada

Member
Aug 31, 2002
6
0
151
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