foswiki perl配置在浏览器中显示为纯文本

时间:2014-06-01 11:42:30

标签: apache perl foswiki

我正在尝试在localhost上安装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>

感谢您的帮助!

1 个答案:

答案 0 :(得分:1)

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