title: PHP exec/shell_exec/system not working through browser
body: <p>I am running an SCO Unix box with apache version 1.3.33 and PHP version 4.4. I can properly execute the exec command through the cli, but run into trouble with trying to execute the script via a browser. My settings are:</p>
  
  <ul>
  <li>safe mode off</li>
  <li>full read/write/exec permissions</li>
  <li>displaying all errors</li>
  <li>no disabled functions</li>
  </ul>
  
  <p>My code: test_script.php in htdocs dir</p>
  
  <pre><code>&lt;?php
  exec('ls',$out,$rval);
  echo "Output:&lt;hr /&gt;";
  print "&lt;pre&gt;"; print_r($out); print "&lt;/pre&gt;";
  echo "Return Value:&lt;hr /&gt;";
  echo $rval;
  ?&gt;
  </code></pre>
  
  <p>I've tried setting the executable binary path explicitly also. The test script is the same User/Group as apache. I've also tried adding 2>&amp;1 to the arg, but see no change. Thank you in advance.</p>
  
  <p>See <a href="https://stackoverflow.com/questions/538939/php-exec-will-not-execute-shell-command-when-executed-via-browser">here for similar.</a></p>