Conditions: Apache based server, PHP runs as DSO, suEXEC enabled.
Symptoms: PHP Scripts cannot access or write user's files/directories, because Apache runs under the username "nobody".
Solution: You need to enable ModRuid2 for Apache in WHM -> EasyApache3 panel and recompile Apache/PHP.