Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
NickTheGreek

php disable_functions in PHP-FPM

Recommended Posts

ello,

Please revert any modifications you have made and let us know if the steps outlined below are helpful:

1. Create the /var/cpanel/ApachePHPFPM directory:
 

Code:
mkdir /var/cpanel/ApachePHPFPM

2. Create the /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml file:
 

Code:
touch /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml

3. Edit /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml using your preferred text editor (e.g. vi, nano) so that it looks exactly like this:
 

Code:
php_admin_value_disable_functions : passthru,system

In this example, "passthru,system" are left as disabled functions. No other lines exist before or after this entry in this file.

4. Regenerate the PHP-FPM configuration files via:
 

Code:
/scripts/php_fpm_config --rebuild

Thank you.

 

https://forums.cpanel.net/threads/php-disable_functions-in-php-fpm.613903/

https://forums.cpanel.net/threads/enabling-php-fpm-forces-disable_functions.590799/#post-2391379

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×