Skip to main content

Help interpreting user processes with php-fpm

Comments

4 comments

  • sparek-3
    Unfortunately, this is the way PHP-FPM works. It's not the same as PHP as CGI (suphp). When your webserver requests a PHP script, it gets passed along to a PHP-FPM server (pool... socket). That is technically all the Linux kernel will see. That PHP-FPM socket is handling the PHP process. It is not privvy to what that socket is actually doing or what file(s) it is running. You can tail the domlogs for the particular user or virtualhost of the PHP-FPM socket to see what might be being accessed if you see a long running and high usage PHP-FPM process in top. But there's not going to be a way for the kernel to know what files a PHP-FPM socket is accessing.
    0
  • Metro2
    @sparek-3 Thank you for taking time to reply and clarify that, I truly appreciate it!
    0
  • cPanelMichael
    Hello @Metro2, To reiterate, @sparek-3 is correct. The functionality you are seeking is exclusive to suPHP with the "full_php_process_display" setting in the /etc/suphp.conf file. It's not a feature of PHP-FPM. Thank you.
    0
  • Metro2
    Thank you @cPanelMichael, always good to have that extra confirmation and a little info about the differences in how they work behind the scenes.
    0

Please sign in to leave a comment.