Web服务器正在提取而不是执行CGI文件

我第一次设置了Bugzilla,而且我得到这个错误:

TEST-FAILED Webserver is fetching rather than executing CGI files. Check the AddHandler statement in your httpd.conf file. 

我search了很多不同的线程,但没有任何帮助。 AddHandler语句似乎是正确的。 这是我的apache2.conf。

 ScriptAlias /bugzilla/ /var/www/html/bugzilla/ <Directory /var/www/html/bugzilla> AddHandler cgi-script .cgi Options +ExecCGI +FollowSymLinks DirectoryIndex index.cgi AllowOverride Limit FileInfo Indexes Options </Directory> 

我按照这个教程: https : ./testserver.pl我卡在3.2.9,其中./testserver.pl导致上述错误。

在任何教程或我的任何search中都没有提到的东西是启用CGI模块。

 sudo a2enmod cgi sudo service apache2 restart 

作为参考,这里是我的apache2.conf:

 Alias /bugzilla/ /var/www/html/bugzilla/ <Directory /var/www/html/bugzilla> AddHandler cgi-script .cgi Options +ExecCGI +FollowSymLinks DirectoryIndex index.cgi AllowOverride Limit FileInfo Indexes Options </Directory> 

来源: https : //askubuntu.com/questions/54251/how-do-i-make-apache-run-a-cgi-instead-of-showing-the-text

在移动这么简单,而不是一个Alias指令尝试CGI的ScriptAlias