lawrence@lemmy.worldM to Comic Strips@lemmy.world · 5 months agoLinux processeslemmy.worldimagemessage-square67fedilinkarrow-up1572arrow-down118
arrow-up1554arrow-down1imageLinux processeslemmy.worldlawrence@lemmy.worldM to Comic Strips@lemmy.world · 5 months agomessage-square67fedilink
minus-squarelawrence@lemmy.worldOPMlinkfedilinkarrow-up5·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-squarejollyrogue@lemmy.mllinkfedilinkarrow-up4·5 months agoOr PHP runs in its own fastcgi like process under a different account.
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.