まず、環境はwindows7 32bit xampp v3.2.1
xampp上のコントロールパネル→Admin→CGIのステータスは「開始」となっている。
apacheのv-host.conf上の変更点
<VirtualHost *:80>
DocumentRoot "C:/www1"
ServerName localhost
<Directory "C:/www1">
Options ExecCGI Indexes FollowSymLinks MultiViews
AddOutputFilter INCLUDES .html
AddType text/html .shtml
Order allow,deny
Allow from all
AddHandler image/gif .gif
AddHandler image/jpeg .jpeg .jpg .jpe
AddHandler image/png .png
AddHandler text/html .html .htm
Require all granted
</Directory>
</VirtualHost>
とした。
http://www.kent-web.com/count/daycount.html
上記のサイトのDAY COUNTERをwindows7 cドライブ直下に以下の様に設定した。
www1/
+- index.html ... ここにカウンタを設置するものとする
|
| 累計カウント : <img src="daycount.cgi?gif">
| 昨日カウント : <img src="daycount.cgi?yes">
| 本日カウント : <img src="daycount.cgi?today">
|
| と記述
|
+--daycount / daycount.cgi [705]
| init.cgi [604]
| check.cgi [705]
| conv.cgi [705]
|
| .htaccess(AddType application/x-httpd-cgi .cgiと記述)
|
|
+-- lib / gifcat.pl [604]
| magick.pl [604]
|
+-- data / daycount.dat [606]
| today.dat [606]
| yes.dat [606]
|
+-- gif1 / 0.gif ... 9.gif
|
+-- gif2 / 0.gif ... 9.gif
なお、daycount.cgi
check.cgi
conv.cgi
は一行目を#!"C:\xampp\perl\bin\perl.exe"とした。
色々サイトを見てcgi-binフォルダに画像ファイルを入れると画像が見れなくなる事とか
apacheではCGIの入ったフォルダに.htaccess(AddType application/x-httpd-cgi .cgiと記述)
を入れてやらないと動作しないとかの情報を元に上記の様な設定になったのですが上手くいかないようです。
一応画像もアップしておきました。なにかしらの参考になりましたら…
この設定でどこかおかしい所が有ればご指摘願います。
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
関連するカテゴリからQ&Aを探す
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・街中で見かけて「グッときた人」の思い出
- ・「一気に最後まで読んだ」本、教えて下さい!
- ・幼稚園時代「何組」でしたか?
- ・激凹みから立ち直る方法
- ・1つだけ過去を変えられるとしたら?
- ・【あるあるbot連動企画】あるあるbotに投稿したけど採用されなかったあるある募集
- ・【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?
- ・映画のエンドロール観る派?観ない派?
- ・海外旅行から帰ってきたら、まず何を食べる?
- ・誕生日にもらった意外なもの
- ・天使と悪魔選手権
- ・ちょっと先の未来クイズ第2問
- ・【大喜利】【投稿~9/7】 ロボットの住む世界で流行ってる罰ゲームとは?
- ・推しミネラルウォーターはありますか?
- ・都道府県穴埋めゲーム
- ・この人頭いいなと思ったエピソード
- ・準・究極の選択
- ・ゆるやかでぃべーと タイムマシンを破壊すべきか。
- ・歩いた自慢大会
- ・許せない心理テスト
- ・字面がカッコいい英単語
- ・これ何て呼びますか Part2
- ・人生で一番思い出に残ってる靴
- ・ゆるやかでぃべーと すべての高校生はアルバイトをするべきだ。
- ・初めて自分の家と他人の家が違う、と意識した時
- ・単二電池
- ・チョコミントアイス
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
エクセルで集計したい。
-
htmlの偽装について質問があり...
-
cgiからsendmailを送信で文字化け
-
/bin/awk '{print $5}'ってどう...
-
○.datから情報を取り出し、○.ht...
-
ファイル名でなく、ファイルの...
-
探索アルゴリズム
-
Image::Magickの入手法
-
ホームページでCGIのフォームを...
-
フォームを再送信しますか?
-
天気の子の映画作りに担当した...
-
CGIを含んだHPデータのサーバー...
-
チェックボックスで複数の値を
-
.htaccessで特定のIPアドレス以...
-
パソコンのメモリー増設方法を...
-
CGIにて構築されている新着情報...
-
C# クラスの配列の並び替えに...
-
質問ページ(CGI)に行く時にフ...
-
CGIゲーム設置について
-
apacheでPerl CGIが作動せず、5...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
cgi→csvが文字化け
-
safariでcgiが表示されず cgi...
-
cgiからcgiを呼び出す方法2
-
CGIで表示されるページ(hoge.c...
-
1つのhtmlページにたくさんのC...
-
cgi内から別のcgiを呼び出す。
-
SSIでリダイレクトできないでし...
-
KENT WEBのページカウンタのタ...
-
アクセス解析 フレーム SSI ....
-
EXCELファイルに誰がアクセスし...
-
《エクセルVBA》「他の人が該当...
-
CGIでソースがそのままでてしま...
-
ASP(IIS?)のエラーについて
-
FTPにて553エラー
-
ASPから既存のexcelブックを開...
-
VBScriptで、ファイルから任意...
-
ASPからJavaScriptへの受け渡し...
-
VBAでサーバーにアクセスするに...
-
ラジオボタンのグループ化
-
JAVAで別サーバーのファイルの...
おすすめ情報