LoganK wrote:I wasn't aware *.cgi was a valid extension...I thought all CGI programs reside in the cgi-bin.
If you want to run php with your credentials, and not as nobody and your server is running SuExec then you do put the php script in the cgi bin, this will tell you if you're you
#!/usr/bin/php
<?php // CGI-BIN
system("/usr/bin/whoami");
?>
Put it in the cgi bin, make it executable. Try that outside the bin where you're just a faceless fish again, swimming with the shoal.