Skip to main content

PHP-FPM exec(whoami) no output?

Comments

2 comments

  • cPanelMichael
    Hello, PHP-FPM executes scripts as the user configured in it's corresponding pool configuration, which defaults to the account username. "exec" is added to the disable_functions PHP configuration option by default with PHP-FPM. That would explain why you are not receiving any output when using that value in the test script. Documentation on PHP-FPM configuration is available at: Configurations Values of PHP-FPM - Documentation - cPanel Documentation Thank you.
    0
  • ItsMattSon
    Fantastic, @cPanelMichael! There's no stumping you haha. Thanks yet again!!
    0

Please sign in to leave a comment.