Score:0

Nginx run as apache user: how to fix owner of tmp folder

us flag

I used to set up Nginx as frontend and Apache as backend, and for the sake of simplicity used to set Nginx to run as apache user (by specifing user apache; in nginx.conf).

After that, default Nginx's tmp dir (e.g. /var/lib/nginx/tmp) become unusable by nginx as it belongs to nginx not apache. Ok, I do chown -R apache ... and fix it - but after a while (looks like until next Nginx update) the ownder of these dirs restores to nginx again.

The question is: how can I set Nginx scripts to use apache as owner user and not to set it back to nginx?

Michael Hampton avatar
cz flag
Don't do this. Run nginx as the `nginx` user.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.