title: Why I can't execute this terminal comand in my php code?
body: <p>i want to test via ApacheBenchmark a website, and,after the execution, people.txt contains just sh: 1: ab: not found</p>
  
  <p>i tried full path of ApacheBenchmark</p>
  
  <pre><code>&lt;?php
  $output = shell_exec('ab -k -c 350 -n 20000 www.yahoo.com 2&gt;&amp;1');
  $file = 'people.txt'; 
  file_put_contents($file, $output);
  ?&gt;
  </code></pre>