title: Cannot run cgi, show plain text only (Ubuntu 13.10 Apache 2.4)
body: <p>I just install Ubuntu 13.10 and I am trying to install Apache. But when I tried to run a perl file in cgi-bin, the browser showed only plain text.</p>
  
  <p>My default.conf of Apache is below:</p>
  
  <pre><code>    AddHandler cgi-script .cgi .pl
      ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
      &lt;Directory "/usr/lib/cgi-bin"&gt;
              AllowOverride None
              Options +Indexes +ExecCGI +MultiViews +SymLinksIfOwnerMatch
              #Order allow,deny
              Require all granted
              Allow from all
      &lt;/Directory&gt;
  </code></pre>
  
  <p>This is my perl cgi file:</p>
  
  <pre><code>    #!/usr/bin/perl
      print "Content-type: text/html\n\n";
      print "&lt;html&gt;\n";
      print "&lt;title&gt; PERL CGI&lt;/title&gt;\n";
      print "&lt;body&gt;";
      print "hello perl-cgi!!!!!!!";
      print "&lt;/body&gt;";
      print "&lt;/html&gt;\n";
  </code></pre>
  
  <p>I have turned on the Handler in mime.conf The file is in /usr/lib/cgi-bin, and I run it as http not file:///. I have also installed mod_perl.
  I am new to Apache. I have searched for several hours, try endless Apache configurations, read Apache document but still cannot solve it. Is it because the "+ExecCGI" code has some problem? I saw another person also meet similar problem after updating Ubuntu 12.04 to 13.10. Maybe Ubuntu is the problem?
  Please help. The Apache configuration and Ubuntu permission almost drive me mad.  </p>