WiCKeDxgg Posted December 13, 2021 Share Posted December 13, 2021 I cannot edit php functions on this host via php.ini file. They are telling me i need to disable functions via htaccess. i tried using php_admin_value disable_functions "all functions here" but it threw an error on my community. to be clear i didnt anchor it in some tags <> i just put the command in the htaccess file. Link to comment Share on other sites More sharing options...
Randy Calvert Posted December 13, 2021 Share Posted December 13, 2021 Try not quoting all functions here. php_value disable_functions exec,passthru,shell_exec,system SeNioR- and WiCKeDxgg 2 Link to comment Share on other sites More sharing options...
WiCKeDxgg Posted December 13, 2021 Author Share Posted December 13, 2021 1 hour ago, Randy Calvert said: Try not quoting all functions here. php_value disable_functions exec,passthru,shell_exec,system do i have to put it inside <> i notice in access file there is always something like <directory/dir> php_value disable_functions exec,passthru,shell_exec,system </directory> Link to comment Share on other sites More sharing options...
Randy Calvert Posted December 13, 2021 Share Posted December 13, 2021 You should not need a directory path. Now... it's important to remember... this call cannot REMOVE a value that is disabled at the server level. For example.... If the server disables module1, module2, and module3... You cannot use a custom value of just module1, module2 so that module3 is enabled. module3 would remain disabled. The directive is designed to ADD additional modules to the deny list, not remove them from it. 🙂 Link to comment Share on other sites More sharing options...
WiCKeDxgg Posted December 14, 2021 Author Share Posted December 14, 2021 6 hours ago, Randy Calvert said: You should not need a directory path. Now... it's important to remember... this call cannot REMOVE a value that is disabled at the server level. For example.... If the server disables module1, module2, and module3... You cannot use a custom value of just module1, module2 so that module3 is enabled. module3 would remain disabled. The directive is designed to ADD additional modules to the deny list, not remove them from it. 🙂 Im sorry im very ignorant when you use all these smart words. I just don't understand haha. I am using the .htaccess file invision provided for friendly urls. So does this look correct? php_value disable_functions exec,passthru,shell_exec,system i seem to still have the errors in my admin panel 😪 Link to comment Share on other sites More sharing options...
Recommended Posts