In a shell I do simple whoami and I get geoff, which is good, since that\'s who I am.
In a php file I have shell_exec(\'whoami\'); and I get nobody.
This see