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!

Include Problems

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

  1. ManXP

    ManXP Well-Known Member

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    156
    Hi,

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

    include_once('/home/other_account/public_html/file.php')

    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 website1.com/file.php 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?
     
    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