最近,我在Ubuntu 14.04中下载并安装了mooshak。我按照要求和安装页面中给出的所有步骤进行了操作。
当我尝试访问http://localhost/~mooshak
时,我正被重定向到http://localhost/~mooshak/cgi-bin/execute
并显示以下内容:
#!/bin/sh
# the next line restarts using tclsh \
PATH=$PATH:/usr/local/bin:/usr/contrib/bin ; exec tclsh "$0" "$@"
#-*-Mode: TCL; iso-accents-mode: t;-*-
cd ../..
lappend auto_path packages
source .config
execute::command_line
有人能指出我正确的方向吗?这是我的/etc/apache2/mods-enabled/userdir.conf
文件的内容:
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Require all granted
</Limit>
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
</Directory>
<Directory /home/*/public_html/cgi-bin>
Options +ExecCGI -Includes -Indexes
SetHandler cgi-script
Order allow,deny
Allow from all
</Directory>
</IfModule>
提前致谢!
答案 0 :(得分:0)
确保在Apache2中启用了模块userdir
和suexec
。如果需要,请执行以下命令
cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/userdir.conf
sudo ln -s ../mods-available/userdir.load
sudo ln -s ../mods-available/suexec.load
您需要重新启动Apache才能激活配置。
sudo apache2ctl graceful