Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Require once error

Discussion in 'General Discussion' started by Gonzo Desperado, Dec 7, 2012.

  1. Gonzo Desperado

    Gonzo Desperado Registered

    Joined:
    Dec 7, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I Don't work with PHP much, so take it easy on me. I uploaded a website and am now recieving this error.

    Warning: require_once(/usr/local/apache/htdocs/includes/global.php ) [function.require-once]: failed to open stream: No such file or directory in /home/ccsys/public_html/includes/global.php on line 6

    Fatal error: require_once() [function.require]: Failed opening required '/usr/local/apache/htdocs/includes/global.php ' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ccsys/public_html/includes/global.php on line 6

    Mty question is : How do I change the site root to the home folder of this server
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Please consult with the developer or support for the PHP script you are using. They should be able to guide you on the configuration files that should be modified.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    68
    Looks like the script looking for the files in the default document root ( /usr/local/apache/htdocs ) instead of the one for the domain. This usually occur if you are trying to access the site using temporary url / incorrect rewrite rules. Can you please if that is the case here ? using absolute path ( in this case, /home/user/public_html/includes/global.php , replace user with correct username) should solve the problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice