Well if you running a secure hosting that can allow folder to be 777, here’s the question”:
how to setup a server to allow php scripts to run as user nobody…
Don’t, as its not the proper way to run scripts, hence the problems you are seeing. This is like asking how to securely lock up a car, if everyones car keys are the same. But I am also not here to *teach* people how to run secure web servers, not actually my job I am afraid.
without ANY security vulnerabilities.
In a properly secured server, your own scripts, running in your own account, will always have the ability to affect things in your own account, so *ANY* is a strong statement. Nothing is 100%, but throwing your arms up and saying “well its common, so live with it”, is the wrong way to handle security. Just because something is “common” does not mean its right, or the only, or proper way to do things. The excuse just means people are complacent, unaware, or can’t be bothered to provide proper security to their hosting clients.
If this was so common then many more users in these forums would be suffering the same issues. Being I can say for certain that not everyone in these forums is a hosting client of ours, I would say its not a very common issue, but is a good answer from a hosting company that does not want to seem to be bothered with putting proper security between their hosting clients accounts and scripts.
People in these forums will be happy to recommend hosting companies that they don’t suffer issues like this. Just ask, or check out other threads asking about hosting companies.