I'm running php-fpm, and I'm having a problem that sometimes my code will create a directory as the root user, even though all the php-fpm processes are running as nginx.
The master process itself is running as root, so I suspect that process is the one creating these root-owned directories.
Does anyone have any solutions to this issue?