Fedora 31 : php-fpm as root Hint

 

vi /etc/php-fpm.d/derp.conf

;user = apache

user = root

 

vi /lib/systemd/system/php-fpm.service 

#ExecStart=/usr/sbin/php-fpm --nodaemonize

ExecStart=/usr/sbin/php-fpm --nodaemonize -R

 

systemctl daemon-reload

systemctl restart php-fpm