Symptoms
-
The directive disable_functions cannot be changed using the article How to disable PHP functions globally?
-
After changing the directive disable_functions in Plesk in Domains > example.com > PHP Settings, domain's phpinfo still shows the old value.
-
The configuration file
/var/www/vhosts/system/example.com/etc/php.ini
contains the default value:# grep "disable_functions" /var/www/vhosts/system/example.com/etc/php.ini
disable_functions = "opcache_get_status"
Cause
This is Plesk bug PPPM-9216, which is planned to be fixed in one of the future product updates.
Resolution
Subscribe to this article to be notified when the bug would be fixed.
Until that, use the following workaround:
-
Install the extension Panel.ini Editor.
-
Go to Extensions > My Extensions > Panel.ini Editor > Open > Editor.
-
Put the desired values for the parameter
disable_functions
as follows and click Save:CONFIG_TEXT: [php]
settings.performance.disable_functions.values[]=base64_decode
settings.performance.disable_functions.default=base64_decode -
Go to Service Plans > plan_name > PHP Settings.
-
Check that the parameter
disable_functions
has the correct value. -
Click Update & Sync.
Warning: So the value of the parameter
disable_functions
is propagated to the domain's PHP Settings, the Hosting performance settings management permission must be disabled in Service Plans > plan_name > Permissions. -
Repeat the steps 5-7 for each service plan.
Additional information
Plesk Onyx Administrator's Guide - Customizing PHP Parameters
Comments
0 comments
Please sign in to leave a comment.