Setting user and group for php-fpm

$ locate www.conf
/etc/php/7.4/fpm/pool.d/www.conf

$ egrep '^(user|group)' /etc/php/7.4/fpm/pool.d/www.conf
user = www-data
group = www-data

$ sudo systemctl restart php7.4-fpm

$ sudo systemctl status php7.4-fpm
● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2020-12-11 23:14:05 PST; 1min 8s ago
       Docs: man:php-fpm7.4(8)
    Process: 119460 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS)
   Main PID: 119447 (php-fpm7.4)
     Status: "Processes active: 0, idle: 2, Requests: 7, slow: 0, Traffic: 0req/sec"
      Tasks: 3 (limit: 2345)
     Memory: 47.4M
     CGroup: /system.slice/php7.4-fpm.service
             ├─119447 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
             ├─119458 php-fpm: pool www
             └─119459 php-fpm: pool www

Dec 11 23:14:05 ninegene-1 systemd[1]: Starting The PHP 7.4 FastCGI Process Manager...
Dec 11 23:14:05 ninegene-1 systemd[1]: Started The PHP 7.4 FastCGI Process Manager.

Leave a Comment

Your email address will not be published.

one × two =