Skip to main content

PHP Functions disabled but not disabled in php.ini

Comments

10 comments

  • andrew.n
    Are you running EasyApache 3 or 4? Under MultiPHP option in WHM can you confirm that the domain is using ea-php71?
    0
  • RetiredAF
    We are running EasyApache 4 and I have confirmed that the domain is using ea-php71 in Home "Software "MultiPHP Manager.
    0
  • RetiredAF
    We got the answer from our server customer support. This fixed our problem. They said: There is PHP-FPM enabled for all domains on the server. It overwrites some PHP options, namely disable_functions. Thus, if you need these customizations, one should disable PHP-FPM for a domain or globally on the server as it conflicts. You may refer to
    0
  • kdean
    No need to disable PHP-FPM. With PHP-FPM, you can override the disabled functions by either editing / creating: /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml which will apply to all domains. Sample with other defaults I have: --- php_admin_value[error_reporting]: E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT pm_max_children: 5 pm_max_requests: 500 pm_process_idle_timeout: 20 php_admin_value_disable_functions : passthru,system
    or edit a specific domain's yaml file in /var/cpanel/userdate/ACCOUNT/DOMAIN.php-fpm.yaml' Afterward you must rebuild PHP-FPM: /scripts/php_fpm_config --rebuild and maybe rebuild Apache: /scripts/rebuildhttpdconf
    0
  • RetiredAF
    Thanks for that input.
    0
  • cPanelLauren
    Glad to see you were able to get a resolution to the issue and thank you for updating here with the information on how it was resolved.
    0
  • tss
    It took a while, but I finally found I could edit disabled functions in multiphp-manager/user/fpm-settings/DOMAIN. The only disabled function I could find in /var/cpanel/userdate/ACCOUNT/DOMAIN.php-fpm.yaml was one for a WordPress site (not the one I needed to change). Does anyone know if that was added by the WordPress installer? Just curious...
    0
  • cPRex Jurassic Moderator
    @tss - the system is designed so that you should not need to edit those yaml files directly. Is there a reason the cPanel >> MultiPHP INI Editor tool isn't working well? Are you able to use that area to perform those modifications?
    0
  • tss
    @cPRex: After I wrote that first post, I did a little more research and found that page. It didn't come up in searching WHM, but I did find it from the PHP-FPM doc. It seems to be working. Just a note to the above thread: I didn't need to restart Apache, only the PHP-FPM service. My error then went away. Thanks for the quick response!
    0
  • cPRex Jurassic Moderator
    I'm glad that's all you had to do!
    0

Please sign in to leave a comment.