在Appsev伺服器啟動CGI服務的方法

回覆文章
布魯斯
Site Admin
文章: 211
註冊時間: 週四 2月 16, 2006 3:34 pm

在Appsev伺服器啟動CGI服務的方法

文章 布魯斯 »

在Appsev伺服器啟動CGI服務的方法
用記事本開啟Appserv目錄下的apache\conf\httpd.conf這個檔案,
然後找到以下這段文字:

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
然後在MultiViews後面空一格加上ExecCGI
尋找到:
#
# Apache parses all CGI scripts for the shebang line by default.
# This comment line, the first line of the script, consists of the symbols
# pound (#) and exclamation (!) followed by the path of the program that
# can execute this specific script. For a perl script, with perl.exe in
# the C:\Program Files\Perl directory, the shebang line should be:


#!c:/usr/bin/perl.exe
以上那一行是已經修改過的了,請改成你的本機的安裝目錄




然後存檔重新啟動這樣就行了!!
希望大家都能成功


忘了說不用更改路徑就能用原始的#!/usr/bin/perl執行的方法,
就是在安裝ActivePerl的時候將安裝的目錄改成:
C:\Usr\就行了!!(前人經驗)
回覆文章