Sei sicuro che php viene eseguito come utente webserver ?
Se dai

echo shell_exec('whoami');

cosa ti scrive?