Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php-fpm process command full path?

Discussion in 'General Discussion' started by tui, Oct 7, 2017.

Tags:
  1. tui

    tui Well-Known Member

    Joined:
    Jun 15, 2007
    Messages:
    83
    Likes Received:
    5
    Trophy Points:
    58
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Hello,

    With csf/lfd we received this kind of alerts when a user script is exceeding the use of resources

    Time: Saturday Oct 7 20:28:13 2017 +0500
    Account: user
    Resource: Virtual Memory Size
    Exceeded: 587 > 512 (MB)
    Executable: /opt/cpanel/ea-php70/root/usr/
    sbin/php-fpm
    Command Line: php-fpm: pool domain_com

    In past, we used suPHP, and with suPHP alerts like this and top/htop shows full path of script, like:

    user /usr/bin/php /home/user/public_html/spam.php

    This was very helpful to detect malicious scripts and suspend the user, however with php-fpm the path that shows is generic so is difficult to see what is really happening... is there a way to use php-fpm and show full path of script?

    I do not want to stop receiving this alerts as they are very helpful and important, but i want to receive this alerts with full script path.

    Thanks in advice
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,435
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    That functionality 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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice