cvs: php4 /sapi/nsapi nsapi-readme.txt

From: Date: Wed, 20 Feb 2002 10:41:19 +0000
Subject: cvs: php4 /sapi/nsapi nsapi-readme.txt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9399@lists.php.net to get a copy of this message
derick Wed Feb 20 05:41:19 2002 EDT Modified files: /php4/sapi/nsapi nsapi-readme.txt Log: - Reformatting Index: php4/sapi/nsapi/nsapi-readme.txt diff -u php4/sapi/nsapi/nsapi-readme.txt:1.2 php4/sapi/nsapi/nsapi-readme.txt:1.3 --- php4/sapi/nsapi/nsapi-readme.txt:1.2 Tue May 30 09:20:18 2000 +++ php4/sapi/nsapi/nsapi-readme.txt Wed Feb 20 05:41:18 2002 @@ -1,65 +1,76 @@ Configuration of your Netscape or iPlanet Web Server for PHP4 ------------------------------------------------------------- -These instructions are targetted at Netscape Enterprise Web Server -and SUN/Netscape Alliance iPlanet Web Server. On other web servers -your milage may vary. +These instructions are targetted at Netscape Enterprise Web Server and +SUN/Netscape Alliance iPlanet Web Server. On other web servers your +milage may vary. Firstly you may need to add some paths to the LD_LIBRARY_PATH -environment for netscape to find all the shared libs. This is -best done in the start script for your netscape server. -Windows users can probably skip this step. The start -script is located in: -<path-to-netscape-server>/https-servername/start - -netscape config files are located in: -<path-to-netscape-server>/https-servername/config - -add the following line to mime.types - -type=magnus-internal/x-httpd-php exts=php - - -Add the following to obj.conf, shlib will vary depending on your OS, for unix it -will be something like "<path-to-netscape-server>/bin/libphp4.so". - -#note place following two lines after mime types init! -Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/php4/nsapiPHP4.dll" -Init fn=php4_init errorString="Failed to initialize PHP!" - -<Object name="default"> -. -. -. -.#NOTE this next line should happen after all 'ObjectType' and before all 'AddLog' lines -Service fn="php4_execute" type="magnus-internal/x-httpd-php" -. -. -</Object> - - -<Object name="x-httpd-php"> -ObjectType fn="force-type" type="magnus-internal/x-httpd-php" -Service fn=php4_execute -</Object> +environment for Netscape to find all the shared libs. This is best done +in the start script for your Netscape server. Windows users can +probably skip this step. The start script is located in: + + <path-to-netscape-server>/https-servername/start + + +Netscape config files are located in: + + <path-to-netscape-server>/https-servername/config + + +Add the following line to mime.types: + + type=magnus-internal/x-httpd-php exts=php + + +Add the following to obj.conf, shlib will vary depending on your OS, for +Unix it will be something like: + + "<path-to-netscape-server>/bin/libphp4.so". + + +Note! Place following two lines after mime.types init: + + Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/php4/nsapiPHP4.dll" + Init fn=php4_init errorString="Failed to initialize PHP!" + + <Object name="default"> + . + . + . + # NOTE this next line should happen after all 'ObjectType' and before + # all 'AddLog' lines + + Service fn="php4_execute" type="magnus-internal/x-httpd-php" + . + . + </Object> + + <Object name="x-httpd-php"> + ObjectType fn="force-type" type="magnus-internal/x-httpd-php" + Service fn=php4_execute + </Object> Authentication configuration +---------------------------- + +PHP authentication cannot be used with any other authentication. ALL +AUTHENTICATION IS PASSED TO YOUR PHP SCRIPT. To configure PHP +Authentication for the entire server, add the following line: + + <Object name="default"> + AuthTrans fn=php4_auth_trans + . + . + . + . + </Object> -PHP authentication cannot be used with any other authentication. ALL AUTHENTICATION IS -PASSED TO YOUR PHP SCRIPT. To configure PHP Authentication for the entire server, add -the following line: - -<Object name="default"> -AuthTrans fn=php4_auth_trans -. -. -. -. -</Object> To use PHP Authentication on a single directory, add the following: -<Object ppath="d:\path\to\authenticated\dir\*"> -AuthTrans fn=php4_auth_trans -</Object> + <Object ppath="d:\path\to\authenticated\dir\*"> + AuthTrans fn=php4_auth_trans + </Object> +

« previous php.cvs (#9399) next »