• ベストアンサー
※ ChatGPTを利用し、要約された質問です(原文:Internal Server Error)

Internal Server Error

Ka-Waの回答

  • Ka-Wa
  • ベストアンサー率46% (12/26)
回答No.1

原因は多数考えられますがとりあえず初歩的なところで、 ・Perlへのパスが違っている(スクリプトの一行目の #!/usr/bin/perl ←この記述) ・読み込むライブラリのパスや、サーバ側で提供されていないライブラリをRequireしてる その他は、スクリプト内部の例外で、Exceptionをハンドリングしてないと全てInternal Server Errorになってしまって原因究明が難しくなりますね

santa005
質問者

お礼

アドバイス有り難うございました。上記の通り基本的なミスでした。

santa005
質問者

補足

>>Exceptionをハンドリングしてないと・・・ とありますが、例えばどういうことでしょうか?教えてください。

関連するQ&A

  • 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
  • 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. -----

  • 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
  • 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について

    今まで閲覧できたサイトのページで、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などで調べましたが、原因がまったくわからず困っております。 どなたか、詳しい方がいらっしゃいましたら、ご教授よろしくお願い致します。

  • 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なんで大丈夫なはずなんです。ファイアーウォールも切ってみたんですが変わりありませんでした。

  • IIS(?)のエラーについて

    教えて下さい。 WebサーバにIISを使用しているのですが クライアントから接続しにいくと以下のエラーMSGがブラウザに表示されます。 SERVER ERROR   The server encountered an internal error or misconfiguration and was unable to complete your request このエラーはIISが表示していると思われますが 原因がわかりません。 情報が少なくてすみませんが、これだけでどんな原因があるか分かりますか? また、こんな調査方法が良いだとか、関連することなんでも良いので 教えて下さい。

  • 買い物カゴの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
  • okwave

     初めまして  次のページを見ようとしたら       Internal  Server  Error  The server encountered an internal error or misconfiguration and was unable to complete your request. と表示されました。 此れはなんでしょうか?

  • 500 Internal Server Error

    500 Internal Server Errorが出ます。 サーバ:CentOS6.4 サーバ側の文字コード:UTF-8 perlのパス:/usr/bin/perl index.cgiの文字コード:LF (サーバ上で直接作成) index.cgiのパーミッション:777 (パーミッションの問題を避けるためわざと、777に設定) ここで、サーバ上で直接実行 perl /var/www/html/index.cgi すると、正しく処理の結果が返ってきてエラーは出ません。 しかし、クライアントのブラウザでindex.cgiにアクセスすると、500 Internal Server Errorが出ます。 なお、index.cgiを設置するディレクトリはApacheで以下のように設定しcgiスクリプトを有効にしています。 <Directory “/var/www/html”> Options FollowSymLinks ExecCGI </Directory> AddHandler cgi-script .cgi .pl #AddDefaultCharset UTF-8 ******************************************************* 【/var/www/html/index.cgi】 #!/usr/bin/perl print "Content-type: text/html"; print "<html>"; print "<body>"; print "<p>"; print "CGI"; print "</p>"; print "</body>"; print "</html>"; スクリプトの文法に問題があれば、サーバ上で直接実行させた時点でエラーを吐きそうですし、 パーミッションは777にしていますし、Apacheの設定もcgiを有効にしているので 他に500 Internal Server Errorが出る原因が掴めません。 Apacheの設定で、#AddDefaultCharset UTF-8 として文字セットを無効にした場合は CGIスクリプトの方で何か追加してやらないと、文字化け以前の問題で必ず500 Internal Server Errorを吐くんですかね? ご指導のほどよろしくお願い致します。

    • ベストアンサー
    • CGI