Setting open_basedir = ~/public_html in php.ini results in access denied
Per: How to Edit Your php.ini File - cPanel Knowledge Base - cPanel Documentation
I set open_basedir = ~/public_html but this results in all php site being "access denied"
FWIW: PHP open_basedir Tweak is enabled as well, but should not be in play as II'm not using DSO.
-
Hello, You'd need to use an entry like the one referenced on the following post: Thank you. 0 -
Ummm... Are you saying it must be set per user, in their own php.ini file? (I also noted there was a bug in v66 relating to this; possibly that's what you are referring to?) Why do that doc specify "~/public_html" if it doesn't work? (It actually seems exactly right to me, but it doesn't work.) Maybe this will help: I'm using FPM on some sites (that works per the docs), and some CGI handler (fails). FastCGI mod is installed but doesn't show as an option in non-FPM handlers. SuPHP no installed because it's 5 years out of date. mod_ruid no installed. I'm sure I'm just not understanding something correctly... 0 -
Hello, The documentation includes the following note: [QUOTE]This setting only affects servers that use the mod_php Apache module.
Thus, the documented setting is only application to mod_php (DSO). If you are using a PHP handler other than DSO, then you must set that value for each account in their individual php.ini files as noted in the thread linked in my last response. The exception to that is PHP-FPM, as with PHP-FPM you must set the value using the instructions on the following post: Thank you.0 -
Thus, the documented setting is only applicable to mod_php (DSO).
Doht! Thanks... I read that line several times and never converted it to "DSO" in my brain. I makes sense now.0
Please sign in to leave a comment.
Comments
4 comments