PHP open_basedir Tweak - Preventing Script From Working

calvinphanctt

Active Member
Mar 27, 2007
44
0
156
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello :)

What PHP handler are you using on this system?

Thank you.