PHPでできてるWebサーバ。おもしろい。シンプル。 個人的な感想だけどPHPの実行速度がApacheより早い気がする
これを、Ruby on RailsのwebrickのようにEthnaの一部として動作するようにカスタマイズする。 PHPだってやればできる子なのよ!
Nanoweb - Windows inst. in another path
this didn't help at all I still get the following errors:
20020928-174953 - aEGiS nanoweb/1.8.2 (c)2002 by sIX <[email protected]>
20020928-174953 - WARN: function 'pcntl_fork' not available
20020928-174953 - FATAL: function 'socket_create' not available, aborting
こういうエラーがでている場合、php_socket.dllが読みこまれていない。 よくあるのはPHPをc:phpにおいただけ。というパターン。 おいてから、php.ini-recommendをphp.iniにおきかえ、 extension_dirに.extを設定し、php_socket.dllのコメントをはずしてやらなければいけない。
さらに、php-cli.exeはないのでnanostart.batの中のphp-cli.exeをphp.exeとかにする必要があるかもしれにゃー
以下のようなエラーがでて止まってしまう。
<blockquote> 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. </blockquote>
そんなときは、php.iniの
; cgi.force_redirect = 1
を
cgi.force_redirect = 0
に変えるとよい