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?
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.
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.
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.