title: shell whoami doesn't equal php shell_exec whoami?
body: <p>In a shell I do simple whoami and I get geoff, which is good, since that's who I am.</p>
  
  <p>In a php file I have shell_exec('whoami'); and I get nobody.</p>
  
  <p>This seems to me to be a difference that could be explaining my original problem: imagemagick works from a shell but doesn't work from within a php script.</p>
  
  <p>Now from working through this site I think this means that my apache xampp assigns a different user name rather than using my usual user name.</p>
  
  <p>I have tried to change my login within the php by way of sudo but this isn't working for me as of yet.</p>
  
  <p>Can anyone help?</p>