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.

open_basedir issue

Discussion in 'General Discussion' started by pavemen, Aug 23, 2008.

  1. pavemen

    pavemen Active Member

    Oct 8, 2003
    Likes Received:
    Trophy Points:
    WHM 11.23.2 cPanel 11.23.4-S26138
    REDHAT Enterprise 5.2 i686 on standard - WHM X v3.1.0

    PHP 5.2.5 as DSO, SUExec On

    I have PHP settings as follows (read from WHM PHP editor)

    include_path = .:/usr/lib/php:/usr/local/lib/php:/~
    open_basedir = /usr/bin/:/usr/local/bin/:/~

    Open_basedir Tweak is enabled with no exclusions

    I am having an issue with running a php script via CRON or directly from a console session (using puTTy) logged in as the domain user or as root

    The file I am trying to run is in the /~ folder of the user directory and I simply use "php file.php" to run it and I get the open basedir in effect error.

    Does not matter if its via cron or manually entered at command prompt. The files I am trying to include are being called as "/home/user/public_html/folder/file.php" and I have tried setting it to "./public_html/...." and "public_html/..." in the script I want to run but the error remains.

    Anyone help? I need these scripts to run daily but they are not working, and I do not know for how long its been broken.

    All the files I want to run are owned by the user and in the users group.

Share This Page