From dc6882a311e06281d7e5a94b36476289e54223ca Mon Sep 17 00:00:00 2001 From: Friedhelm Betz Date: Mon, 23 Jun 2003 17:33:28 +0000 Subject: [PATCH] examples to xml, restructering git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@133058 c90b9560-bf6c-de11-be94-00142212c4b1 --- chapters/install.iplanet.xml | 314 +++++++++++++++++++++-------------- 1 file changed, 186 insertions(+), 128 deletions(-) diff --git a/chapters/install.iplanet.xml b/chapters/install.iplanet.xml index 293210f3e7..9b5221b1dc 100644 --- a/chapters/install.iplanet.xml +++ b/chapters/install.iplanet.xml @@ -1,5 +1,5 @@ - + Servers-Netscape and iPlanet @@ -8,153 +8,211 @@ and Windows versions. - You can find more information about setting up PHP for - the Netscape Enterprise Server here: + You can find more information about setting up PHP for the Netscape + Enterprise Server (NES) here: &url.netscape.nsapi; Installing PHP with Netscape on Sun Solaris - To build PHP with NES or iPlanet web servers, enter the proper - install directory for the - --with-nsapi - = DIR option. The default - directory is usually /opt/netscape/suitespot/. + To build PHP with NES or iPlanet web servers, enter the proper install + directory for the + --with-nsapi=[DIR] + option. The default directory is usually + /opt/netscape/suitespot/. Please also read /php-xxx-version/sapi/nsapi/nsapi-readme.txt. + + + These instructions are written for Sun Solaris 2.6 with Netscape + Enterprise Server 3.6, conributed by bhager at invacare dot com. + + - - Installation Example for Netscape Enterprise on Solaris - + + + + Install the following packages from + &url.sun.freeware; or another download site: + + autoconf-2.13 + automake-1.4 + bison-1_25-sol26-sparc-local + flex-2_5_4a-sol26-sparc-local + gcc-2_95_2-sol26-sparc-local + gzip-1.2.4-sol26-sparc-local + m4-1_4-sol26-sparc-local + make-3_76_1-sol26-sparc-local + + mysql-3.23.24-beta (if you want mysql support) + + perl-5_005_03-sol26-sparc-local + tar-1.13 (GNU tar) + + + + + + Make sure your path includes the proper directories + PATH=.:/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin + and make it available to your system export PATH. + + + + + gunzip php-x.x.x.tar.gz (if you have a .gz dist, + otherwise go to 4). + + + + + tar xvf php-x.x.x.tar + + + + + Change to your extracted PHP directory: + cd ../php-x.x.x + + + + + For the following step, make sure + /opt/netscape/suitespot/ is + where your netscape server is installed. Otherwise, change to the + correct path and run: + - - - After performing the base install and reading the appropriate - readme file, you may need to performs some additional - configuration steps. + + + + + + Run make followed by make install. + + + - Firstly you may need to add some paths to the LD_LIBRARY_PATH - environment for Netscape to find all the shared libs. This can - best done in the start script for your Netscape server. - Windows users can probably skip this step. The start - script is often located in: - /path/to/server/https-servername/start + After performing the base install and reading the appropriate readme file, + you may need to perform some additional configuration steps. - - You may also need to edit the configuration files that are - located in:/path/to/server/https-servername/config/. - - - - - Configuration Example for Netscape Enterprise - - + + Configuration Instructions for NES + + Firstly you may need to add some paths to the LD_LIBRARY_PATH environment + for Netscape to find all the shared libs. This can best done in the start + script for your Netscape server. Windows users can probably skip this + step. The start script is often located in: /path/to/server/https-servername/start. + You may also need to edit the configuration files that are + located in: /path/to/server/https-servername/config/. + + + + Add the following line to mime.types: + - . - . - . - .#NOTE this next line should happen after all 'ObjectType' and before all 'AddLog' lines - Service fn="php4_execute" type="magnus-internal/x-httpd-php" +type=magnus-internal/x-httpd-php exts=php +]]> + + + + + + Edit obj.conf and add the following, shlib will + vary depending on your OS, for Unix it will be something like + /opt/netscape/suitespot/bin/libphp4.so. You should + place the following lines after mime types init. + + + + + + + + Configure the default object: + + +. +. +. +.#NOTE this next line should happen after all 'ObjectType' and before all 'AddLog' lines +Service fn="php4_execute" type="magnus-internal/x-httpd-php" . . - - - - ObjectType fn="force-type" type="magnus-internal/x-httpd-php" - Service fn=php4_execute - - - - 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: - - - AuthTrans fn=php4_auth_trans - . - . - . - . - - - To use PHP Authentication on a single directory, add the following: - - - AuthTrans fn=php4_auth_trans - ]]> - - + + + + + + Create a new object for the usage of PHP: + + +ObjectType fn="force-type" type="magnus-internal/x-httpd-php" +Service fn=php4_execute + +]]> + + + + + + Setup of authentication: 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 to your default object: + + +AuthTrans fn=php4_auth_trans +. +. +. + +]]> + + + + + + To use PHP Authentication on a single directory, add the following: + + +AuthTrans fn=php4_auth_trans + +]]> + + + + + + - If you are running Netscape Enterprise 4.x, then you should use the following: - - - Configuration Example for Netscape Enterprise 4.x + If you are running Netscape Enterprise 4.x, then you should use the + following: Place these lines after the mime types init, + and everything else is similar to the example configuration above. + (Contributed by Graeme Hoose, GraemeHoose at BrightStation dot com). - + Installing PHP with Netscape on Windows @@ -166,14 +224,14 @@ Init fn="php4_init" LateInit="yes" Copy php4ts.dll to your systemroot - (the directory where you installed windows) + (the directory where you installed Windows) Make a file association from the command line. Type the following two lines: - + Copy php4ts.dll to your systemroot - (the directory where you installed windows) + (the directory where you installed Windows) Make a file association from the command line. Type the following two lines: - + \ No newline at end of file +-->