Skip to main content

disable_functions in users php.ini not working

Comments

10 comments

  • Benito

    I have to add to the topic. Other changes to the user's php.ini do take effect correctly. At the moment only disable_functions would not be working.

    0
  • cPRex Jurassic Moderator

    Hey there!  If you scroll up to the top section does that confirm the correct ini is loaded that you are expecting?  Also, in the formatting of the line, there shouldn't be any spaces - they should just be comma-delimited like this:

    disable_functions = exec,passthru,shell_exec,system

    so that could be an issue as well. 

    0
  • Benito

    Hi Rex, thanks for responding. I tried without space between commas and that didn't work either. I finally changed PHP from ea-php80 to alt-php80 and disabled sendmail with the PHP Selector options.

    I would still like to know why with MultiPHP all the changes are made except disable_functions.

    0
  • Benito

    No, is not using PHP-FPM. I think is something related to cloudlinux.

    0
  • cPRex Jurassic Moderator

    It's possible this isn't allowed in CageFS.  There are details about this here:

    https://cloudlinux.zendesk.com/hc/en-us/articles/5833042816156-How-to-allow-users-to-manage-the-disable-functions-option-via-PHP-Selector

    Could you check that option?

    0
  • Benito

    Yes, with PHP Selector I can disable functions without problems. The article you shared explains how to add that option to PHP Selector.

    What I can't do is disable features with cPanel's native MultiPHP INI Editor.

    0
  • cPRex Jurassic Moderator

    It sounds like there is a conflict between the two editors, which likely shouldn't be in use anyway at the same time.  I think we'd need to see a ticket to find out what is happening here.

    0
  • Benito

    Yeap, we only have MultiPHP enabled for our customers. I enabled alt-php only because I need to disable sendmail for this customer and can't do it with MultiPHP. I will open a ticket. 

    1
  • cPRex Jurassic Moderator

    If you could post that ticket number here I'd like to follow along.

    0

Please sign in to leave a comment.