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.

PHP open_basedir Tweak - Preventing Script From Working

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

  1. calvinphanctt

    calvinphanctt Active Member

    Joined:
    Mar 27, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    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 domain1.com), domain2 (for domain2.com) , domain3 (for domain3.com), domain4 (for domain4.com), and domain5 (for domain5.com)

    The script I bought when I installed it in "domain1.com" 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 domain2.com/directory1/ or domain3.com/directory2/

    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 "domain1.com", "domain2.com" , "domain3.com" under "Exclude Protection" .

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

    Select directory to protect
    Path:


    Code:
    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 !

    Sincerely,
    Calvin
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page