Namazu-users-ja(旧)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

namazu.cgi 500 Internal Server Error



たなか@tans.orgと申します。初めての投稿になります。

私のWebpageにCGIとしてNamazuを設置したく試行しているのですが
500 Internal Server Errorが出てしまいうまく動作させることがで
きません。

/*以下、Webブラウザで見た場合のサーバからのエラーメッセージ

>Internal Server Error
>The server encountered an internal error or misconfiguration and was
>unable to complete your request.
>Please contact the server administrator, webmaster@xxxxxxxx and inform
> them of the time the error occurred, and anything you might have done
> that may have caused the error.
>
>Premature end of script headers: /home/hogehoge/namazu.cgi
>
>--------------------------------------------------------------------------------
>
>Apache/1.3.3 Server at www.tans.org Port 80

ここまで*/

■環境

・さくらインターネット(http://www.sakura.ne.jp/)のバーチャル
 ドメインサービスを使用
・ドメイン               :tans.org
・サーバOS               :FreeBSD 2.2.8
・Namazuのバージョン     :2.0.5
・Perlのバージョン       :5.005_02 built for i386-freebsd
・Cコンパイラのバージョン:gcc 2.7.2.1
・nkfのバージョン        :1.62
・httpd                  :Apache 1.3.3

・KAKASI                 :2.3.2
    /usr/local/bin にKAKASIがインストールされてなく、root権限
    をもっていないので、
    http://www.amays.com/~mizusawa/namazu_kaisetu/ 内の、
    http://www.amays.com/~mizusawa/namazu_kaisetu/noSUinstall.html
    のドキュメントを参考に、/home/hogehoge/ 以下にインストール。

・Text-Kakasi            :1.04
    上記KAKASI2.3.2の場合と同ドキュメントを参考にして、
    /home/hogehoge以下にインストール。
    また、http://village.infoweb.ne.jp/~fwnk1502/data/namazu2.htm
    こちらのドキュメントのMakegfile.PLの修正を行うパターン
    も試してみたが、結果は変わらず。

・File-MMagic、Namazu本体のインストールに関しても上記ドキュ
  メント群を参考の上、File-MMagicは

    perl Makefile.PL LIB=/home/hogehoge/lib INSTALLMAN3DIR=/home/hogehoge/man

  とし、Namazuは

   ./configure --disable-shared --prefix=/home/hogehoge \
   --with-pmdir=/home/hogehoge/lib

  として、インストール。(--disable-sharedの指定をしないパタ
  ーンも試しては見たが結果かわらず。)

これで試行した結果、mknmzや、telnetでコマンドラインからのnamazu
は問題なく動くのですが、CGIとしてwebブラウザから表示させた場合に
はどうしてもエラーになってしまいます。
# namazu.cgiのPermissionは755/705両方試しました。(さくらイン
# ターネットでは基本的に705でOK。私のWebpageで運用している他
# のCGIはそのようにしている。)

また、namazu-users-ja MLの過去ログにも似たケースのものがあり、
参考にしてみたのですが、先に参考にしたドキュメントと同じ方法が
書かれており、解決にはいたりませんでした…。
# http://www.namazu.org/ml/namazu-users-ja/msg00450.html


この様な症状なのですが、他に確認すべきや助言などありましたら
よろしくお願いいたします?


--
たなかしんいち (tan@xxxxxxxx)
If I die tomorow. I prefer to die with my philosophy with same way.
(Philippe Troussier)