Forum Moderators: phranque
$who = shell_exec("whoami");
echo "$who";
When I run that commend on the old server I got that users username. Which, makes since as that means anything created via PHP would be owned by that user. In fact, every other host I know of was like that. But, on the new server when I run the commend it shows up as "nobody". How can I fix this so my commands will run properly for me and my users?
That probably is correct. Many Apache servers are setup to run as user "nobody" and PHP adopts that permission when Installed as an Apache module [php.net].