disable_functions not working
Hi,
I've tried using disable_functions by editing the php.ini files through WHM > Software > MultiPHP INI Editor, but these changes doesn't take affect, it seems.
i.imgur.com/DjD2lOI.png
I've defined the disabled functions as such:
disable_functions = show_source,system,shell_exec,passthru,exec,phpinfo,popen,proc_open
I've restarted Apache and Litespeed and tried to update the CageFS skeleton, but it seems like it just won't work. It also doesn't help changing the values for the user only.
-
Hello, Could you review the thread linked below and let us know if it helps? Cloudlinux + CageFS + PHP Selector - how to update default php.ini for each PHP version? Thank you. 0 -
Hi, We're not using PHP Selector, which is why I made the changes to MultiPHP instead. No changes made in WHM > Software > MultiPHP INI Editor are taking affect. I've also made sure that it's the right file that is loaded and that this file contains the changed values. 0 -
The MultiPHP system is the EA4 SCL ones in /opt/cpanel . You say you have restarted litespeed please put a phpinfo(); function in the web root and call it via browser .See what SAPI it is using . For the php-fpm one disabled_functions is specified in the php-fpm pool file by cPanel which overrides php.ini PHP-FPM and EasyApache 4 - Documentation - cPanel Documentation 0 -
What do you mean what SAPI it's using? I've already called the phpinfo(); function. I can see that the webserver is indeed loading /opt/cpanel/ea-php56/root/etc/php.ini which contains the changed values, but none of the values are changed when looking at phpinfo. 0 -
I can see that the webserver is indeed loading /opt/cpanel/ea-php56/root/etc/php.ini which contains the changed values, but none of the values are changed when looking at phpinfo.
Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.0 -
[QUOTE="cPanelMichael, post: 2474055, member:256941">Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
Hello, Please am having the same problem, i am on vps and I have setup the multiple INI editor and included shell_exec in disable_functions list but to my surprise I tried shell_exec func in website and it works. What could be the cause and how will I remedy it? Thank you.0 -
Please am having the same problem, i am on vps and I have setup the multiple INI editor and included shell_exec in disable_functions list but to my surprise I tried shell_exec func in website and it works.
Hello, Can you verify which specific PHP handler you have enabled for the domain names you notice this on? For instance, are you using PHP-FPM? Thank you.0 -
You know it once stopped and after a while, when i set my php to only php7.0 version but started showing again. I mean phpinfo, there was a time I tried it and it does not show. But after some time it starts showing again. My php handler is suphp and and i have PHP-FPM to be on. 0 -
My php handler is suphp and and i have PHP-FPM to be on.
Hello, There are some additional steps you must take when adjusting the disable_functions value for an account when using PHP-FPM. We provide instructions on how to modify the disable_functions PHP setting with PHP-FPM at: Enabling PHP-FPM forces disable_functions Thank you.0
Please sign in to leave a comment.
Comments
9 comments