php-src/sapi/thttpd
Sascha Schumann 1f18eaadee Force /nocache/ entities to be delivered completely, even if a
broken proxy ignores our anti-cache headers and sends an IMS request.
2002-09-23 15:41:44 +00:00
..
config.m4 Please welcome the new build system. 2002-03-07 14:20:02 +00:00
CREDITS 2nd step towards auto-credits 2000-11-20 10:33:33 +00:00
php_thttpd.h Update headers. 2001-12-11 15:32:16 +00:00
php.sym Add SAPI module for thttpd server. Quote from the README: 1999-12-20 07:11:14 +00:00
README refine 2002-07-16 16:24:15 +00:00
stub.c Fix building thttpd SAPI module. 2000-08-07 13:54:35 +00:00
thttpd_patch Force /nocache/ entities to be delivered completely, even if a 2002-09-23 15:41:44 +00:00
thttpd.c Use generic getnameinfo for address-to-name translation, if available. 2002-09-23 00:49:12 +00:00

README FOR THTTPD MODULE (by Sascha Schumann)        
($Date$)

	This is a SAPI module for PHP 4.0 supporting thttpd, the tiny,
	turbo, throttling HTTP server by Jef Poskanzer.

	The module contains a patch against version 2.21b of thttpd. The patch
	adds hooks to thttpd to call PHP, if a filename matches *.php. This
	patch will be applied when you install PHP.

	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.

	NOTE: All requests will be serialized. That means, one long running
	      script will block all other requests. Choose another web-server,
	      if you want to execute arbitrary scripts.

REQUIRED DOWNLOADS

	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
	   
	2. PHP 4.0.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.