lawrence@lemmy.world to Comic Strips@lemmy.world · 2 年前Linux processeslemmy.worldimagemessage-square66linkfedilinkarrow-up1570arrow-down118
arrow-up1552arrow-down1imageLinux processeslemmy.worldlawrence@lemmy.world to Comic Strips@lemmy.world · 2 年前message-square66linkfedilink
minus-squarelawrence@lemmy.worldOPlinkfedilinkarrow-up5·2 年前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.
minus-squarejollyrogue@lemmy.mllinkfedilinkarrow-up4·2 年前Or 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.