gpt4 book ai didi

apache - Perl CGI 脚本显示为纯文本

转载 作者:行者123 更新时间:2023-12-04 19:37:46 25 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许在 Stack Overflow 上提出有关专业服务器或网络相关基础设施管理的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。


6年前关闭。







Improve this question




我将所有网站移到另一台服务器上,一切正常,但是我的 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 模块,或者将以下内容添加到您的 prefs 文件中:

$PREF{use_md5_for_hashes} = '是';

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

关于apache - Perl CGI 脚本显示为纯文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34225164/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com