Why is www-data in sudo? Pretty sure that is not default :)
Oct 3, 2022
6
Level 1
Bet way to set up PHP user while running Laravel
What user PHP should run as?
Right now, on my Apache2 + PHP8 (FPM) users are as follows: Apache runs as www-data, PHP runs as me (the one I am logging into the Debian server with).
I don't think this is a very good practice, since this user also is a sudoer, also I don't really want PHP to run as www-data (as others state in other forums, it is insecure).
So, what user PHP should be running as?
Please or to participate in this conversation.