NameSilo

Need help: Installing a WHM/cpanel auto signup script

Spacemail by SpaceshipSpacemail by Spaceship
Watch

BrandonG

VIP Member
Impact
14
Hi,

I've attempted to install a script and i've setup the correct variables in the config file, but I keep getting this message:

Warning: mysql_list_fields() [function.mysql-list-fields]: Unable to save MySQL query result in /home/brandong/public_html/hosting/config.php on line 20

Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /home/brandong/public_html/hosting/config.php on line 21

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/brandong:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/brandong/public_html/hosting/Welcome.php on line 3

Warning: main(/usr/local/cpanel/Cpanel/Accounting.php.inc) [function.main]: failed to open stream: Operation not permitted in /home/brandong/public_html/hosting/Welcome.php on line 3

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/brandong:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/brandong/public_html/hosting/Welcome.php on line 3

Warning: main(/usr/local/cpanel/Cpanel/Accounting.php.inc) [function.main]: failed to open stream: Operation not permitted in /home/brandong/public_html/hosting/Welcome.php on line 3

Warning: main() [function.include]: Failed opening '/usr/local/cpanel/Cpanel/Accounting.php.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/brandong/public_html/hosting/Welcome.php on line 3

Fatal error: Call to undefined function: showversion() in /home/brandong/public_html/hosting/Welcome.php on line 4
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
care to pass along the script name?
 
0
•••
You have open_basedir on...

There are 4 ways you could fix it, any one of these should work for you.

  1. Disable open_basedir in php.ini
  2. If there is some sort of 'global' file in the script you're trying to use, try adding:
    PHP:
    // It appears your current path is:   .:/usr/lib/php:/usr/local/lib/php
    // But we'll still use  get_include_path() to get it
    set_include_path(get_include_path() . ':/usr/local/cpanel');
  3. Use .htaccess:
    Code:
    # For .htaccess though, it'll be done manually.
    php_value include_path ".:/usr/lib/php:/usr/local/lib/php:/usr/local/cpanel"
  4. Alter the php.ini entry for include_path
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back