@lawrenceM to Comic Strips • 5 months agoLinux processesimagemessage-square67arrow-up1572arrow-down118
minus-square@[email protected]linkfedilinkEnglish6•5 months agoForgive me my ignorance, but since Apache is running as root, couldn’t PHP inherit it’s permissions?
minus-square@lawrenceOPMlink5•5 months agoThe Apache main process runs as root. When it receives a request, it spawns a child process that doesn’t run as root. PHP runs as the same user as the Apache child process.
minus-square@[email protected]linkfedilink4•5 months agoOr PHP runs in its own fastcgi like process under a different account.
Forgive me my ignorance, but since Apache is running as root, couldn’t PHP inherit it’s permissions?
The Apache main process runs as root. When it receives a request, it spawns a child process that doesn’t run as root. PHP runs as the same user as the Apache child process.
Or PHP runs in its own fastcgi like process under a different account.