Skip to main content

Why did cPanel plugin always inherit the cgroup of cpsrvd?

Comments

7 comments

  • User Avatar
    cPRex Jurassic Moderator

    Hey there!  The plugin will always have the cgroup of cpsrvd as that is the parent process.  The best option would likely be to use cpsrvd's PHP-FPM, as that would hand off the process to the FPM socket, and then the FPM pool itself runs as the cPanel user and not cpsrvd.

    Would that work for you?

    0
  • User Avatar
    Nizar Akbar

    Hello,

    Is there any documentation how to set the cPanel plugin so it is run by cpsrvd PHP-FPM not by /usr/local/cpanel/3rdparty/php/83/bin/php-cgi ?

     

    The temporary current solution that i found recently by using bash wrapper script that run cagefs_enter.proxied then use the script in exec appended by the command.

    0
  • User Avatar
    cPRex Jurassic Moderator

    You can enable this in WHM >> Service Manager by enabling the " PHP-FPM service for cPanel Daemons" option there.  Can you try that?

     

    0
  • User Avatar
    Nizar Akbar

    Is there any detailed documentation? it is still not using fpm even when php-fpm service for cPanel already activated.

    0
  • User Avatar
    cPRex Jurassic Moderator

    That's odd as that is one of those things where "it should just work" after it has been enabled without additional configurations.

    Could you create a ticket so we can check this on your machine?

    0
  • User Avatar
    Nizar Akbar

    Did we need to activate PHP-FPM on MultiPHP Manager too?

    0
  • User Avatar
    cPRex Jurassic Moderator

    No, that wouldn't be necessary as this would be for internal cPanel processes and not public PHP used on websites.

    0

Please sign in to leave a comment.