我正在尝试在本地主机上安装 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>
谢谢你的帮助!