title: How to allow perl cgi-bin script to run system commands?
body: <p>I'm currently working on developing a perl script as a cgi-bin in my website.</p>
  
  <p>I successfully config it to run without any issues. Here are the config I have done for it.</p>
  
  <pre><code>ScriptAlias /cgi-bin/ /my web directory/cgi-bin/
      &lt;Directory /my web directory/cgi-bin/&gt;
          Options ExecCGI
          AddHandler cgi-script cgi pl
      &lt;/Directory&gt;
  </code></pre>
  
  <p>But I cannot use system() function in the script to run some system commands.
  It gives Can't exec, No such file or directory
  or Permission denied.</p>
  
  <p>What should add you apache config to allow cgi-bin to run those commands?</p>
  
  <p>Thank you!</p>