552
Linux processes (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] hemko@lemmy.dbzer0.com 6 points 2 months ago

Forgive me my ignorance, but since Apache is running as root, couldn't PHP inherit it's permissions?

[-] lawrence@lemmy.world 5 points 2 months ago

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.

[-] jollyrogue@lemmy.ml 4 points 2 months ago

Or PHP runs in its own fastcgi like process under a different account.

this post was submitted on 12 Aug 2024
552 points (96.9% liked)

Comic Strips

12443 readers
3728 users here now

Comic Strips is a community for those who love comic stories.

The rules are simple:

Web of links

founded 1 year ago
MODERATORS