PHP Shell Exec problems?

Devin R

New member
I'm getting a new server configured and cannot get exec,passthru,system, or any of the other executable lines to execute in PHP, from the command line or web. My test.php file is one line:

<?php echo exec("whoami"); ?>

When executed from the command line i get:

sh: /whoami: No such file or directory

Thoughts on what I'm doing wrong or have missed configuring?
 
Back
Top