显示为纯文本的 Perl CGI 脚本

Perl CGI script displayed as plain text

我将我所有的网站都移到了另一台服务器上,一切正常,但是,我的 perl 脚本不是 运行,显示为纯文本。

URL 上的 perl 脚本必须 运行。

该网站的虚拟主机如下:

<virtualhost *:80>
 ServerName prestoprint.ca
 ServerAlias  www.prestoprint.ca
 ServerAdmin zadmin@localhost
 DocumentRoot "/path/prestoprint_ca"
 ErrorLog "/path/prestoprint_ca/error/error.log"

 ScriptAlias /cgi-bin/ /path/prestoprint_ca/cgi-bin/

 <Directory "/path/prestoprint_ca">
     Options +FollowSymLinks +Indexes
     AllowOverride All
     Require all granted
     AddHandler cgi-script .cgi .pl
 </Directory>

 <Directory "/path/prestoprint_ca/cgi-bin">
     Options +ExecCGI
     SetHandler cgi-script
 </Directory>
 AddType application/x-httpd-php .php3 .php
 DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm filechucker.cgi
</virtualhost>

真的需要帮助:(

非常感谢!

URL 打印的消息是: 您必须安装 Digest::SHA1 Perl 模块,或者将以下内容添加到您的首选项文件中:

$PREF{use_md5_for_hashes} = 'yes';

所以你必须通过 CPAN 或发行版的 repo 安装 Digest::SHA1 模块。