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!

PHP open_basedir Tweak - Preventing Script From Working

Discussion in 'Security' started by calvinphanctt, Nov 26, 2014.

  1. calvinphanctt

    calvinphanctt Active Member

    Mar 27, 2007
    Likes Received:
    Trophy Points:
    Hello everyone,

    I bought a php script which was written to protect the folders of all the users created in the WHM.

    Example: In WHM I have 5 accounts with users as domain1 (for, domain2 (for , domain3 (for, domain4 (for, and domain5 (for

    The script I bought when I installed it in "" website, it will be able to protect all the folders (directories) of itself and of other domains on THE SAME server. for example this script can protect the directories of or

    Before when I use the OLD WHM (don't remember the version), this script works well, but in the new
    WHM 11.46.0 (build 17) , in the "Security Center" under "PHP open_basedir Tweak", I ticked the box "
    "Enable php open_basedir Protection." , and I ticked the box "", "" , "" under "Exclude Protection" .

    But it didn't work. I got this error message:

    Select directory to protect

    Warning: dir(/home/domain2/public_html/): failed to open dir: Permission denied in /home/domain1/public_html/scriptscontrol/selectfolders.php on line 74
    Fatal error: Call to a member function read() on a non-object in /home/domain2/public_html/scriptcontrol/selectfolders.php on line 76

    So, how should I fix this ? Please help !

    Thank you very much !

  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    What PHP handler are you using on this system?

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

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