@lawrence@lemmy.worldM to Comic Strips@lemmy.world • 1 month agoLinux processeslemmy.worldimagemessage-square66fedilinkarrow-up1570arrow-down119
arrow-up1551arrow-down1imageLinux processeslemmy.world@lawrence@lemmy.worldM to Comic Strips@lemmy.world • 1 month agomessage-square66fedilink
minus-square@hemko@lemmy.dbzer0.comlinkfedilinkEnglish6•1 month agoForgive me my ignorance, but since Apache is running as root, couldn’t PHP inherit it’s permissions?
minus-square@lawrence@lemmy.worldOPMlinkfedilink5•1 month 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@jollyrogue@lemmy.mllinkfedilink4•1 month 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.