【发布时间】:2017-08-30 02:01:20
【问题描述】:
我是 CGI 或 Apache 的新手。
我正在尝试安装一个名为 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;-*-
set errorCode NONE
cd ../..
lappend auto_path packages
source .config
execute::command_line
我的/etc/apache2/mods-enabled/userdir.conf 文件如下所示:
<IfModule mod_userdir.c>
<Directory /home/*/public_html/cgi-bin>
Options +ExecCGI -Includes -Indexes
SetHandler cgi-script
Order allow,deny
Allow from all
</Directory>
</IfModule>
我该怎么办?
【问题讨论】: