php-src/sapi/thttpd/README

86 lines
2.4 KiB
Plaintext
Raw Normal View History

2000-07-10 10:09:15 +00:00
README FOR THTTPD MODULE (by Sascha Schumann)
($Date$)
2002-10-26 22:22:07 +00:00
This is a SAPI module for PHP 4.x supporting thttpd, the tiny,
turbo, throttling HTTP server by Jef Poskanzer.
2003-02-19 10:57:21 +00:00
NOTE: All HTTP requests will be serialized. That means, one long running
2002-10-26 22:27:45 +00:00
script will block all other requests. Choose another web server,
2003-02-19 10:57:21 +00:00
if you want to execute arbitrarily long running scripts.
2002-10-26 22:22:07 +00:00
2001-10-02 14:54:46 +00:00
The module contains a patch against version 2.21b of thttpd. The patch
2002-10-26 22:22:07 +00:00
fixes a number of bugs and adds some functionality:
- HTTP/1.1 Persistent Connection/Pipeline Support
- PHP Scripting (**.php by default)
- Highlighting PHP Scripts (**.phps by default)
2003-02-19 10:57:21 +00:00
- Fast Accept Loop (unique to PHP)
- Periodic Connection Expiring (unique to PHP)
- Log to stdout (logfile=-)
- Fixes the Host: header vulnerability (affects vhosts only)
- Asynchronous request body handling (e.g. for POSTs)
- Accept filter for Linux
- Fix for non-blocking sending of thttpd-generated responses
2002-10-26 22:22:07 +00:00
You can configure the filename extensions by creating a config file for
thttpd and setting these entries:
phppat=PATTERN
phpspat=PATTERN
The PATTERN has the same format as defined here:
http://acme.com/software/thttpd/options.html#CGI_PATTERN
"**.php" means: match any file ending in .php in any directory.
Setting the pattern from the command line is not supported.
2002-07-16 16:24:15 +00:00
NOTE: This version supports *only* thttpd 2.21b, no prior or later
version.
This is a functional and stable module (it runs a large application
like IMP 2.2.0 without any problems). Its original intention was to
demonstrate the ability of PHP to work in every web server environment.
REQUIRED DOWNLOADS
2002-10-26 22:22:07 +00:00
1. thttpd 2.21b (2.20 or +2.22beta will _not_ work)
Full Distribution:
http://www.acme.com/software/thttpd/thttpd-2.21b.tar.gz
2002-10-26 22:22:07 +00:00
2. PHP 4.x
Download:
http://www.php.net/
Snapshots from CVS:
http://snaps.php.net/
BUILD INSTRUCTIONS
1. Extract software packages
$ gunzip -c thttpd-2.xx.tar.gz | tar xf -
$ gunzip -c php-*.tar.gz | tar xf -
2. Prepare PHP
$ cd php-*
$ ./configure \
--with-thttpd=../thttpd-2.xx \
<further PHP options>
$ make install
$ cd ..
You can see the list of valid PHP options by executing
$ ./configure --help
3. Configure, compile, install thttpd
Now follow the thttpd instructions. The Makefile template of
thttpd was changed to automatically use the components
required by PHP.