JacobHaug

Member
Mar 9, 2008
9
0
51
Okay, I am running into a few problems when it comes to using the above command. No it is not being blocked in the php.ini file. The issue has to do with permissions. On my old server everything worked fine until I moved over to this new server.

PHP:
$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?
 

darren.nolan

Well-Known Member
Oct 4, 2007
259
0
66
If you are the server admin - recompile apache/PHP with suPHP if it's not already available in WHM->PHP Configuration->make sure suPHP is the controller