lawrence@lemmy.worldM to Comic Strips@lemmy.world · 3 months agoLinux processeslemmy.worldimagemessage-square63fedilinkarrow-up1553arrow-down116
arrow-up1537arrow-down1imageLinux processeslemmy.worldlawrence@lemmy.worldM to Comic Strips@lemmy.world · 3 months agomessage-square63fedilink
minus-squarehemko@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up6·3 months agoForgive me my ignorance, but since Apache is running as root, couldn’t PHP inherit it’s permissions?
minus-squarelawrence@lemmy.worldOPMlinkfedilinkarrow-up5·3 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-squarejollyroguelinkfedilinkarrow-up4·3 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.