AN HTTPD ゲストブック/コメント集(2002年9月16日08:36)


中田昭雄 nakata@st.rim.or.jp 2002/09/17 21:05

龍さん、
http://homepage1.nifty.com/yito/namazu/
のページで、
PHP Security
をキーワードに検索してもらえばよかったと思います。他にも参考になる過去ログがありますし。


dragon@25cent.net 2002/09/17 16:33

Aliceさん、ありがとうございました。
解決しました。


Alice nanase@syotake.to 2002/09/17 10:43

わたしは
http://homepage1.nifty.com/yito/anhttpd/faq/php.html
をカンニングしながら設定したところ問題なくPHP動きました。


dragon@25cent.net 2002/09/17 08:50

なにも知らない素人の質問で恐縮です。
ご指導通りphp.exeに変更したところ下記表示が出ました。
セキュリティページを見ましたが良くわかりませんでした。
ご指導よろしくお願いします。

Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

For more information as to why this behaviour exists, see the manual page for CGI security.

For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.


中田昭雄 nakata@st.rim.or.jp 2002/09/16 16:59

龍さん、
PHPのDLL(php4isapi.dll)を使っているのでしたら、php.exe でやってみてください。


dragon@25cent.net 2002/09/16 08:36

いつも利用させていただきありがとうございます。
ローカルテストで大変重宝させていただいています。
最近、PHPのバージョンアップ(4.0.6から4.2.1へ)したところエラーが出ます。
BBSやPHPINFOなど表示はされるのですが下記の詳細コメントが出て切断されます。
テスト的な簡単なPHPは問題ないのですが・・
又、CGIも全く問題ありません。
使用バージョンは1.36bです。

------------------------------------------------------------------------ 
HTTPD のページ違反です。
モジュール : <不明>、アドレス : 0000:057174c5
Registers:
EAX=00000000 CS=015f EIP=057174c5 EFLGS=00010212
EBX=00000000 SS=0167 ESP=07e4ff40 EBP=07e4ff98
ECX=00000018 DS=0167 ESI=bff558ed FS=5f17
EDX=057174c5 ES=0167 EDI=bff559e6 GS=0000
Bytes at CS:EIP:

Stack dump:
817aef10 017e4d80 00000008 00000000 00000012 00000000 00000000 004a5776 000003ae 000000af 7800248d 00000000 817aef10 817984f8 00000008 c0000005
------------------------------------------------------------------------