• ベストアンサー

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
  • 回答数4
  • ありがとう数4

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

  • ベストアンサー
  • root139
  • ベストアンサー率60% (488/809)
回答No.4

perlの標準モジュールであるCGI::Carpが使える環境であれば、下記のような記述を加えて、エラーメッセージをブラウザに表示させることが出来ます。 ------------------------------------------------- use CGI::Carp qw(fatalsToBrowser); ------------------------------------------------- エラーメッセージが表示されれば、原因の特定がやりやすくなるかと。

参考URL:
http://member.nifty.ne.jp/hippo2000/perltips/CGI/Carp.html
amountainblast
質問者

お礼

ありがとうございます。 どうもsemdmeilのパスの記述の仕方が間違えていたようです。

その他の回答 (3)

noname#48234
noname#48234
回答No.3

#1さんのご回答にあるとおり、このメッセージだけでは具体的なエラー箇所がわかりません。 どんなサーバーを利用されているのか分かりませんが、 ・ローカル(自分のパソコン)ならコマンドプロンプトからCGIを直接実行してみる。 ・リモート(自前やレンタルサーバー)ならば、telnet接続してチェックしてみる。 ログイン後 perl -cw ファイルへのパス/○○○.cgi など。 この説明でお分かりにならなければちょっと勉強が必要ですね。

amountainblast
質問者

お礼

ありがとうございます。 レンタルサーバーなのですが、telnetやsshはサポートされていないんです。 エンコードの問題みたいなので、もう少し奮闘してみたいと思います。

  • CSC
  • ベストアンサー率20% (24/119)
回答No.2

以下の点を確認してみてください。 1.Perlのパス 2.文法(変数の流れ等) 3.パーミッション 一般人にはこれくらいしか考え付きませんが。。。 自分もよくCGIをカスタマイズして使いますが、 その際にデバック専用(KCatch.pm)のpmファイルをインポートしてエラー内容を吐き出すようにしたりしています。

amountainblast
質問者

お礼

さっそくのご回答ありがとうございます。 エンコードが西ヨーロッパ言語になってエラーが起こっているみたいです。どっかで言語を指定してやったら解決すると思うので、どうにか奮闘してみたいと思います。 ありがとうございます。

  • mitoneko
  • ベストアンサー率58% (469/798)
回答No.1

 このエラーメッセージは、CGIで何らかのエラーがあったから、実行できない。詳しい事は、エラーログを参照せよと言っているだけで、ほとんど意味のある情報を提示してくれません。  もし、あなたが、このサーバーの管理者であれば、サーバーのエラーログを参照してください。こっちには、CGIスクリプトからでたエラーメッセージが記録されているはずです。  もし、このエラーログを見る権限があなたにないなら、 ・ポイントポイントで、ファイルに状況を書き出す行を追加して、そのファイルを確認してどこまで、どのような状態で実行されているかを確認する。 ・ローカルのコンピューターで、コンソールからCGIを直接実行してみて、状態をチェックする  くらいしか方法がありません。    また、もし、できるなら、ローカルコンピュータにwebサーバーをインストールして、その上でCGI動かすというのも一つの方法です。そうすれば、エラーログを見ることができますから、かなりやりやすくなります。

amountainblast
質問者

お礼

さっそくのご回答ありがとうございます。 エンコードが西ヨーロッパ言語になってエラーが起こっているみたいです。どっかで言語を指定してやったら解決すると思うので、どうにか奮闘してみたいと思います。 ありがとうございます。

関連するQ&A

  • 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. と表示され、見ることができません。 どうしたらよいですか?

  • Internal Server Errorについて

    いつもご丁寧なご回答本当にありがとうございます。 postmailをサーバーに転送し、メールの送信を試してみたところ下記のエラーが出てしまいました。 パーミッションの確認、センドメールのパス、CGIのパス、メールアドレスの確認もしましたが、間違っていないようです。 サーバーはセンドメール自作CGIが使えるサーバーです。 入力ソースのformもpostmail-cgiで記載しています。 良い、アドバイスがありましたら是非、宜しくお願いいたします。 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, info@stepserver.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. -------------------------------------------------------------------------------- Apache/1.3.41 Server at sss002.kix.ad.jp Port 443

    • 締切済み
    • CGI
  • Internal Server Errorって何で?!

    某ホームページのメール入力フォームからメールと画像データーを送ろうとしました。でも何回やっても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, *****@www.*****.co.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. と出てきます。なんで?!(*****は一応伏せました) それで画像データーをやめて、文字だけ送ったら送れました。でも画像を添付すると送れなくなるんです! 画像の上限は300kbyte以内なんですが、私の画像は172kbなんで大丈夫なはずなんです。ファイアーウォールも切ってみたんですが変わりありませんでした。

  • Internal Server Errorについて

    今まで閲覧できたサイトのページで、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, webmaster@supercarsdubai.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. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache/1.3.41 Server at www.supercarsdubai.com Port 80 そのサイトのトップページは開くのですが、特定のページのみ開きません。ただ、そのサイトは、書き込みなどを行うフォームのサイトなのですが、閲覧できないページは更新されており、原因がサーバというよりは、自分側にあるのかと思っております。 Gooleなどで調べましたが、原因がまったくわからず困っております。 どなたか、詳しい方がいらっしゃいましたら、ご教授よろしくお願い致します。

  • 教えて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. という表記が出てきます。 よく意味が分からないのですが、どのように対処すればよいのでしょうか よろしくお願いします

  • 買い物カゴの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
  • サーバエラー 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

  • 続・メールの送信

    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
  • 内部サーバーエラーについて

    HPを作っていたとき内部サーバーエラーと出ました。 サーバーはhttp://www.pf-x.net/ エラーメッセージは、 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, w@pf-x.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. やったことは、エラーページを製作して、 .htaccessを入れたらだめになりました。 どういう意味か、また、対処法を教えてください。

  • 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 at root@itmidcgi.itmedia.jp to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. -----

専門家に質問してみよう