title: Is there a difference between apache module vs cgi (concerning security)?
body: <p><strong>E.g.</strong> Is it more secure to use <code>mod_php</code> instead of <code>php-cgi</code>?
  Or is it more secure to use <code>mod_perl</code> instead of traditional <code>cgi-scripts</code>?</p>
  
  <p>I'm mainly interested in security concerns, but speed might be an issue if there are significant differences.</p>