【问题标题】:foswiki perl configuration shown as plain text in browser [closed]foswiki perl 配置在浏览器中显示为纯文本 [关闭]
【发布时间】:2014-06-01 11:42:30
【问题描述】:

我正在尝试在本地主机上安装 FosWiki。当我运行配置文件 (localhost/wiki/bin/configure) 时,它在浏览器中显示为纯文本。我确定perl 安装在/usr/bin/perl

我还尝试让 Apache 运行脚本,这里是我的 apache 配置文件。

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    <Directory "/opt/lampp/htdocs/wiki/bin">
            AllowOverride None
            Options ExecCGI FollowSymLinks
            SetHandler cgi-script
            Order allow,deny
            Allow from all
    </Directory>

</VirtualHost>

感谢您的帮助!

【问题讨论】:

  • 您在“运行配置文件”时究竟做了什么?

标签: apache perl foswiki


【解决方案1】:

我找到了答案:您需要安装libapache2-mod-perl 包才能让Apache 执行perl 脚本。

【讨论】:

    猜你喜欢
    • 2017-07-04
    • 1970-01-01
    • 2016-03-17
    • 2013-01-04
    • 2010-12-03
    • 1970-01-01
    • 1970-01-01
    • 2021-12-25
    • 2013-01-25
    相关资源
    最近更新 更多