summaryrefslogtreecommitdiff
path: root/sapi/thttpd/README
blob: 07e40784e053d1a084bfdc761d45a60948347b6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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.

	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.xx
	   
	   Full Distribution:
	   http://www.acme.com/software/thttpd/
	   
	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.