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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Include Problems

Discussion in 'General Discussion' started by ManXP, Jun 24, 2007.

  1. ManXP

    ManXP Well-Known Member

    Feb 3, 2005
    Likes Received:
    Trophy Points:

    There is something wrong about include function on all my cpanel servers. For example, there is a file (file.php) on which looks like:


    As you see, it just includes content from file of other account.

    Now if I enter cronjob "php -q /home/website1/public_html/file.php", I get this warning from cron:

    <b>Warning</b>: main(/home/other_account/public_html/file.php) [<a href='function.main'>function.main</a>]: failed to open stream: Permission denied in <b>/home/website1/public_html/file.php</b>

    php open_dir protection is DISABLED on server, and if I open from browser, erverything is just fine - file from other account is included very well and no errors are displayed. Why I get these errors fropm cron then?

Share This Page