php-src/sapi/aolserver
Rasmus Lerdorf 76a2d2538c Heads up! I have moved the headers_only and response_code checks out of
SAPI and down into the individual SAPI modules.  I have made the
appropriate changes in all the SAPI modules, but please verify these.
The reason for this change is that Apache sometimes will feed PHP
a request_method of GET but have r->header_only set to true.  This happens
in an ErrorDocument redirect.  In this same scenario we want to preserve
the status code as well instead of just overwriting it with a 200 and
losing this information.  For now the other sapi modules act exactly as
before since they probably do not make this distinction, and they may
not even have a valid response code this early in the request.
@ Fix HEAD request bug on an Apache ErrorDocument redirect and preserve
@ the status code across the redirect as well.  (Rasmus)
2000-08-02 22:48:45 +00:00
..
aolserver.c Heads up! I have moved the headers_only and response_code checks out of 2000-08-02 22:48:45 +00:00
config.m4 Later AOLserver releases will copy the include to the installation dir. 2000-05-18 13:10:13 +00:00
Makefile.in Remove trailing empty lines 2000-05-01 22:38:42 +00:00
php.sym --enable-versioning can now be used with CGI/AOLserver as well. Note that 1999-11-20 19:00:17 +00:00
README Later AOLserver releases will copy the include to the installation dir. 2000-05-18 13:10:13 +00:00

AOLserver README ($Id$)

To compile PHP 4.0 as a module for AOLserver, you need:

- AOLserver 3.0 source distribution
- installed AOLserver 3.0 

1.) Configuring AOLserver

Read doc/install.txt in the source distribution

It usually boils down to changing the INST path in include/Makefile.global
and running make all install.

2.) Configuring PHP

$ ./configure \
	--with-aolserver=/path/to/installed/aolserver \
	--with-aolserver-src=/path/to/source/distribution \
	<other options>

NOTE: While AOLserver 3.0 did not install its include directory, later
      releases will do so. This effectively means that you do not need
      to retain the source directory of AOLserver, if there is an
      include directory in the installation directory.

3.) Compiling and Installing PHP

$ make install

4.) Changing nsd.tcl

a) New section

Add a new section to pass options to PHP (required):

ns_section "ns/server/${servername}/module/php"

You can use the following commands in this section:

The 'map' command will cause AOLserver to pass all requests to *.php to
the PHP module (can be specified multiple times).  Example:

ns_param map *.php

The 'php_value "name val"' command assigns the configuration option name 
the value val (can be used multiple times). Example:

ns_param php_value "session.auto_start 1"

b) Enabling PHP

Then enable the PHP module:

ns_section "ns/server/${servername}/modules"
...
ns_param php ${bindir}/libphp4.so


=============================================================================
This has been tested with AOLserver release 3.0.

AOLserver support has been written by Sascha Schumann <sascha@schumann.cx>.