title: PHP system() help no simple commands work
body: <p>I am trying to run a shell from one of my controllers in a PHP codeigniter applications, </p>
  
  <p>I am trying to run the file <code>/x/sh/xpay4.sh</code> however I just get 127 returned to the screen, I can even use basic commands like <code>ls</code> or <code>pwd</code> can any suggest why this would be, I thought it might be safe_mode when I <code>ini_get('safe_mode')</code> it returns 1</p>