In the old, shared server system I was, my username as A. Each PHP script in my site was run with my own username:
$puser = posix_getpwuid(posix_geteuid())['name']; // = $puser = "A";
Now I run my own VPS which runs nginx and the username/group is nginx.
However I 've created a friend's account with username B and I want each PHP script he creates to execute with user B, not nginx. Basically I want each PHP script to be run with the UID of the same user that created it.
Is that possible with nginx ?