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

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    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?
     
Loading...

Share This Page