• 締切済み

ローカルでのhtmllintによるHTML文書の文法チェックができません。

ActivePerl-5.8.0 Build 805とApach 2.0.44でhtmllintによるHTML文書の文法チェックをしたいのですが、チェックができません。 ローカルでhtmllintのサイトのページを127.0.0.1/a/・・というふうに呼び出すことはできますが、いざ文法チェックをさせそうとすると、URL、DATA、FILEのどれもまったくチェックできません。 『 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, メールアドレス 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.44 (Win32) Server at 127.0.0.1 Port 80 』 というエラーページにいきます。 ActivePerl 805とApachはd:/aへ、htmllintはd:/a/bにいれているので、htmllint.envでのパスもそれに倣って記入しています。 $RULEDIR = 'd:/a/b/htmllint/'; # 規則ファイルの場所 など また、 # デフォルト規則ファイル (Windows/Macでは . から始まるファイルは無効) $HTMLLINTRC = 'htmllintrc'; <htmllintrcのファイル名の始めの.を消しました> Jcode-0.82の下のJcode.pmとJcodeというディレクトリをPerlのsiteライブラリにコピーしています。 htmllint関係のサイトの説明どおりにしたつもりですが、どこがいけないか分かりませんか? よろしくお願いします。

  • CGI
  • 回答数1
  • ありがとう数2

みんなの回答

回答No.1

単純なことなのですが、 ・Perlの文法チェック ・apacheのエラーログ の2点はためされましたか? Internal Server Errorというからには、 なんらかのエラーがひっかかってくれていると思います。

yumori3
質問者

お礼

回答があったことに気づかず、ご返答が遅れて申し訳ありません。 結局、ディレクトリのパスを変えたりしてもダメだったので、この組み合わせでのローカル環境でhtmllintを動かすのはやめました。 別のローカル環境では動かせています。ただ、ふたつのローカル環境をパソコンに入れるのがもったいないと思って、最新の質問上の環境に絞れないかと、質問しましたが。 どうもありがとうございました。

関連するQ&A

  • Another HTML-lint gatewayでHTML文書の文法

    Another HTML-lint gatewayでHTML文書の文法をチェックしましたが、次の項目 の修正方法がわかりません。 HTMLヴァージョンは「XHTML1.0 Transitional」(DreamweaverCS5) (1)<a> と </a> の間が空です。 <p><span class="syougyou"><span class="syuuhenn"><img src="image/otaxtitlle4.jpg " width="158" height="27" alt="周辺業務" /></span></span> <a name="risuku " id="risuku"></a>     </p> (2)<div> と </div> の間が空です。  下記の本サイトTOPpageの234,242行 <参考URL> http://openlab.ring.gr.jp/k16/htmllint/htmllint.html http://otax81.com/

  • ローカルテストOKのPerl サーバでのエラーです。

    よろしくご教授下さい。 単純にフォームに入力された内容を確認するためのページを作成しようとしていますが、 ローカルでのテストはOKでしたが、いざサーバにアップするとサーバエラーが出ます。 ローカルのテスト環境 サーバ AnHTTP ActivePerl Ver.5 本サーバの環境 Apache Perlのバージョン 5.6.0 パーミッションは755に変更済み。 PerlのパスもOKです。 あと、考えられるエラーの可能性をご指摘頂けませんでしょうか? よろしくお願いします。 説明不足なとこがありましたら補足致します。 参考にならないかもしれませんが、一応・・・ サーバエラーの内容です。↓ Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, *******@*******.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.19 Server at www.********.com Port**

  • require文が実行できない

    perl で require 'cgi-lib.pl'; または require "jcode.pl"; を実行すると、 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@mshome.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. というメッセージが出ます。(cgi-lib.pl、jcode.plは同じディレクトリにあります。)

  • Another HTML-lint gatewayでHTML文書の文法

    Another HTML-lint gatewayでHTML文書の文法をチェックしましたが、次の項目の修正方法がわかりません。 HTMLヴァージョンは「XHTML1.0 Transitional」(DreamweaverCS5) (1)空要素タグ <img> は <img /> として閉じなければなりません <p>    <img src="image/otaxoutline.JPG" width="480" height="360" alt="oxox"></p> (2)空要素タグ <img> の要素には空白さえも含めることはできません p class="menu-left"><a href="http://twitter.com/xxxx"><img src="image/otaxtwitter.jpg" width="85" height="45" alt="oxox"> </a></p> (3)空要素タグ <br> の要素には空白さえも含めることはできません (4)空要素タグ <br> は <br /> として閉じなければなりません by <a href="http://www.automatic-link.net/" target="_blank">oxox</a><br> (5)空要素タグ <hr> の要素には空白さえも含めることはできません (6)空要素タグ <hr> は <hr /> として閉じなければなりません <p class="center">                 <a href="http://www.otax81.com/FormMail/contact/FormMail.html"><img src="image/otaxtoiawaefooter.jpg" width="435" height="171" alt="footer問合せ"></a></p> <hr> <参考> http://openlab.ring.gr.jp/k16/htmllint/htmllint.html http://otax81.com/

  • phpファイルをHTML4で作成するの問題ですか?

    Webサイトを作成し、phpを使って問い合わせフォームを作成しました。 phpファイルには、XHTMLではなくて、HTML4.01 Transitional で作成しておりますが、問題なく表示されており、メールの送受信もできております。 しかし、次のサイトで文法チェックをすると、点数がマイナスとなっております。 http://cetus.sakura.ne.jp/htmllint/htmllint.html phpを使っていないhtmlファイルで作成したページの文法チェックの場合、90点以上となっております。 phpファイルを作成するときは、XHTMLのほうが良いのでしょうか? HTML4.01 Transitional でphpファイルを作成するのは問題があるでしょうか?

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

  • ez-HTMLからHTMLの文法検証(Another HTML-lintを使って文法チェック)を行う方法

    HTMLエディタは「ez-HTML」を使ってます。 ez-HTMLのサポートページ[URL:http://www.w-frontier.com/software/ezhtml.html]に記載されている「Another HTML-lintを使って文法チェック」を見たのですが、イマイチ手順が分かり難い所があって困ってます。 最初の「Another HTML-lint」をダウンロードしてファイル名を変更する所は分かります。 次に、「Active Perl」のインストールですが、インストール方法が記載されているページ[URL:http://penguin.nakayosi.jp/windows/perl.html]を参考にインストールを行ったのですが、ホームページに記載されている方法の「ファイルの関連付け」は行う必要があるのでしょうか? 更に次の「jcode.pm」は全く分かりません。 誰でも良いので方法を分かり易く教えてください! よろしくお願いします。 ===備考=== OS:Windows XP SP2 ez-HTMLのバージョン:6.88.1

  • 【エラー】Unrecognized character

    Jcode.plを使いShiftJISで出力しているcgiファイルを、 Jcode.pmを使ってUTF8で出力できるように修正していた所、 Internal Server Errorが発生。 Perl文法チェッカーを使い、エラー内容を調べてみると Unrecognized character \xC2 at test.cgi line 168, line 846. cgiファイル168行には↓ &Jcode::convert(\$val, 'utf8'); ここまで↑ Jcode.pmの846行目には↓ sjis SHIFT_JIS ここまで↑ と表記されています。 cgiファイルの168行が間違っているのはわかるのですが、 「\xC2」が何を指しているのかさっぱりわかりません。 $valの中にあるテキストをutf8に変換したい場合は 本来どう書くものなのでしょうか?

    • ベストアンサー
    • Perl
  • Apacheの設定方法を教えてください

    cgi-binフォルダの、どのCGIファイル階層のHTMLファイルにもアクセスすることが出来ません。 また、画像ファイルにもアクセスできません。 CGIファイルだけで動くプログラムはそのままでいいのですが、HTMLや画像ファイルが必要な場合はエラーとなって何も出来なくなってしまってます。 アパッチのどの設定が制限しているのでしょうか? エラーは以下の通りでした。 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, ???@????.or.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.

  • Movable Typeについて

    ビジネスブログとしてMovable Typeを利用しようとしています。 mt_check.cgiまでたどり着き、システムチェックは無事完了しましたとの表示があるにもかかわらず、mt.cgiにアクセスすると (タイトルバー→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, support@broadserver.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.34 Server at アカウント Port 80 と表示されてしまいます・・。 ウインドウズXP、FFFTPを使ってのアップロードで、データベースはPostgreSQLを使用しています。 お名前.comで取得したドメインで、BROAD SERVERのPostgreSQLが使用可能なプランにしているので出来ない原因が思いつきません。 かなり急いでいるので、どなたかご助言くださればうれしいです。

    • ベストアンサー
    • CGI