CGI(Perl)の問題

このQ&Aのポイント
  • CGI(Perl)の実行でInternal Server Errorが発生し、文法ミスが原因と考えられます。
  • CGI(Perl)の間違いの指摘をお願いします。
  • CGI(Perl)の文法をチェックしましたが、自分では問題が見つかりませんでした。
回答を見る
  • ベストアンサー

CGI(Perl)について、間違いがあればご指摘お願いします。

http://www.geocities.jp/mu_how_know/defkaiseki.html これがcgi文章で、 http://www.geocities.jp/mu_how_know/defkaiseki2.html これがHTML文章です。 実行すると Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -------------------------------------------------------------------------------- Apache/2.0.54 (Win32) Server at 127.0.0.1 Port 80 と出てきてしまい、ダメです。 文法ミスが多分原因なので、間違いがあればご指摘ください;; 取り敢えず自分ではミスチェックしました。

  • Perl
  • 回答数1
  • ありがとう数1

質問者が選んだベストアンサー

  • ベストアンサー
  • moon_night
  • ベストアンサー率32% (598/1831)
回答No.1

私の環境では動きました。 Perlのパスが間違ってませんか? #! c:/perl/bin/perl

superjbs
質問者

お礼

早速の回答ありがとうございます。 パスはあっているはずです。 実際動いた物のソースをコピペしましたので^^; moon_nightさんの環境で動くとなると、文法ミスではなさそうですね。

superjbs
質問者

補足

すみません。 エラーログ見て自己解決できました。 ありがとうございました。

関連するQ&A

  • fedoraにcgi

    mkdir でディレクトリを作って vi who cgiを作って 内容は #!/usr/bin/perl print "Content-type: text/html\n\n"; print "<html><body>\n"; print "<pre>"; print 'whoami'; print "</pre>"; print "</body></html>"; なのですが、 ブラウザでテストすると Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, ****@hotmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.29 Server at test.modena.com Port 81 Please contact the server administrator, ****@hotmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.29 Server at test.modena.com Port 81 という風に表示されます。 設定が違っているのでしょうか?

  • 500 Internal Server Error

    http://iboard3.to/ で始まるURLのどのサイトでも 500 Internal Server Error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, info@iboard2.to and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. と表示され、見ることができません。 どうしたらよいですか?

  • mixiで動画をUPしたら・・・・

    mixiで動画をUPしたら・・・・ Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, mixi and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. というエラーが出たんですが、今になっても直りません。 どうすればよいですか?

  • 教えてgooサーバーエラー

    すみません 教えてgooでInternal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@ask01.goo.ne.jp and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. という表記が出てきます。 よく意味が分からないのですが、どのように対処すればよいのでしょうか よろしくお願いします

  • 続・メールの送信

    Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -------------------------------------------------------------------------------- Apache/2.0.39 Server at www.altoworld.com Port 80 こんな表示が出て、白紙でメールだけは届きます

    • ベストアンサー
    • CGI
  • 「使える ねっと」 の フォームメール設定

    よろしくお願いします。 今、「使える ねっと」 の フォームメール設定に戸惑っています。 http://www.tsukaeru.net/ なんど作成しようとしても、 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@tsukaeru.net and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. というエラーが出てしまいます。 「使える ねっと」 の フォームメール設定の経験があるかた、 何かお気づきの点がありましたらアドバイスを頂けると助かります。 また、設定箇所が多くありますが、何がどんな設定なのか良く分かりません。 もし宜しければ、こちらもアドバイスを頂けると非常に助かります。 分からないことばかりで申し訳ありません。 どうぞ宜しくお願い致します。

  • サーバエラー xoops

    Xサーバーのレンタルサーバーを借りて、1つのデータベースに複数のxoopsを設置しています。 最近サイトを開くと以下のようなエラーがでるようになりました。 おそらくサーバに負荷がかかっていると思うのですが、解決策があれば教えていただきたいです。 ニュースモジュールだけ利用しています。 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@***********.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -------------------------------------------------------------------------------- Apache/2.0.52 (Red Hat) Server at ***********.com Port 80

  • あるHPにアクセスしてのエラー

    以下のエラーが出ました。これは、私の方のせいですかね?いきなり英語でエラーメッセージが出ても・・・ Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, あるHPのアドレス and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. どうしたらいいのでしょうか?

  • 買い物カゴのCGI エラーInternal Server Error どうすればいいのでしょう

    iMac DV SE(G3, 500MHz) OS 9.2.2 です。 買い物カゴをもう数年前から何回も設置してうまくいっていたのですが、今回改訂したら動かなくなってしまいました。cart.html(買い物で商品の個数を入れるページ)から、「買い物カゴに入れる」ボタンをクリックすると、次のエラーが出てしまいます。この時のアドレスは、http://www.*******.com/acart/setcook.cgi です。setcook.cgiは間違いなくここにありますし、パーミッションも点検しています。何か問題が考えられることがあるでしょうか。 ------------------------------------------------- Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@*******.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.33 Server at www.*******.com Port 80 ------------------------------------------------- *****は伏せ字にしました。

    • ベストアンサー
    • CGI
  • Internal Server Error???

    こんにちは。 CGIを作ったのですが、 【Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@life-web.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. 】 と言うエラーが出て動きません. もう一つ同じようなcgiを作ったのですが、そちらは普通に動きます.すみませんが、このエラーの場合はどうしたらいいですか? CGIはメールフォームからのメールを送信するものです。

    • ベストアンサー
    • CGI