[Armadillo:02010] Re: Armadillo500で、thttpd+php

酒井一成 email@hidden
2007年 9月 6日 (木) 15:42:44 JST


お世話になっております。
北都システム 酒井です。

同ディレクトリに配置したperlとrubyのcgiは正常に動作したので。
ホームディレクトリ、cgiディレクトリ、cgi指定問題ないかと思います。

他にcUlinux-httpdとかいうのと、BusyBoxのhttpdを試しましたが、
phpだけ同じ結果です。php5-cgiに問題があるのかもしれません。

> 東芝の金子です。
> 
> 的外れかもしれませんが・・・
> 
> thttpdを実行する際に、ホームディレクトリとcgiディレクトリを
> 正しく指定しているか確認してみてはいかがでしょうか?
> 
>  // 金子
> 
> 酒井一成 さんは書きました:
> > お世話になっております。
> > 北都システム 酒井です。
> >
> > 現在Armadillo-500で、thttpd+php(CGI)の環境を構築しようとしています。
> > OSは、atmark-dist-20070727を使用しています。
> >
> > make menuconfigでthttpdを有効にしてビルドし、イメージを転送しました。
> > phpは、Debianから以下のパッケージの中身だけを取り出してNANDフラッシュメ
> > モリに転送しました。(諸事情によりatmark-dist以外のものは、NANDフラッシュ
> > に入れるようにしています)
> >
> > php5
> > php5-cgi
> > php5-common
> > libbz2-1.0
> > libc6
> > libcomerr2 
> > libdb4.4
> > libkrb53 
> > libmagic1
> > libpcre3
> > libssl0.9.8
> > libxml2
> > mime-support
> > ucf
> > zlib1g
> > tzdata
> > debconf
> > debconf-english
> > sed
> > coreutils 
> >
> > 転送後、中身のそれぞれのファイルが本当のパス名の場所に紐づくように、シン
> > ボリックリンクを作成しました。
> > 例)ln -s /mnt/nand_flash/usr/share/php5 /usr/share/php5
> >
> > サンプルとして以下のようなCGIを/home/www-data/cgi-binにsample.phpとして
> > 作成し、実行権限を与えました。
> > #!/usr/bin/php5-cgi
> > <html>
> > <body>
> > <?php
> >         echo 'Hello PHP!';
> > ?>
> > </body>
> > </html>
> >
> > thttpd経由で、このファイルにアクセスしようとすると、なぜか
> > 404が返ってきます。
> >
> > # telnet localhost 80
> > GET /cgi-bin/sample.php
> > Status: 404
> > X-Powered-By: PHP/5.2.0-8+etch7
> > Content-type: text/html
> >
> > No input file specified.
> > Connection closed by foreign host.
> >
> > 404なのに一応実行されたかのように見え、なぞのメッセージ「No input file specified.」
> > が表示されます。
> >
> > ちなみに、シェル上から実行すると、正常に動作しています。
> > # ./sample.php
> > X-Powered-By: PHP/5.2.0-8+etch7
> > Content-type: text/html
> >
> > <html>
> > <body>
> > Hello PHP!</body>
> > </html>
> >
> > この、なぜかステータス404になってしまうのと、実行結果が「No input file
> > specified.」となってしまう問題を解決したいと思っています。
> >
> > どなたか、thttpd+phpで動作実績のある方いらっしゃいましたら、どうかお力を
> > お貸しください。
> >
> > 以上、よろしくお願いいたします。
> >
> > ---------------------------------------
> > 北都システム株式会社
> > 第2技術本部 ITソリューション部
> > 酒井 一成 email@hidden
> > ---------------------------------------
> >
> >
> > _______________________________________________
> > armadillo mailing list
> > email@hidden
> > http://lists.atmark-techno.com/mailman/listinfo/armadillo
> >
> >   
> 
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/mailman/listinfo/armadillo

---------------------------------------
北都システム株式会社
第2技術本部 ITソリューション部
酒井 一成 email@hidden
---------------------------------------





armadillo メーリングリストの案内