lawrence@lemmy.worldM to Comic Strips@lemmy.world · 4 months agoLinux processeslemmy.worldexternal-linkmessage-square57fedilinkarrow-up1534arrow-down118
arrow-up1516arrow-down1external-linkLinux processeslemmy.worldlawrence@lemmy.worldM to Comic Strips@lemmy.world · 4 months agomessage-square57fedilink
minus-squarehemko@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up5·4 months agoForgive me my ignorance, but since Apache is running as root, couldn’t PHP inherit it’s permissions?
minus-squarelawrence@lemmy.worldOPMlinkfedilinkarrow-up4·4 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.
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.