CGIまたはApacheを初めて使用しています。CGIファイルを拡張子なしで実行する
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" "[email protected]"
#-*-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>
私は何をすべき?
...それdoes'nt仕事:( –