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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    69
    Likes Received:
    4
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page