Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 2955

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>Servers-Netscape and iPlanet</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Installation"
HREF="installation.html"><LINK
REL="PREVIOUS"
TITLE="Servers-IIS/PWS"
HREF="install.iis.html"><LINK
REL="NEXT"
TITLE="Servers-OmniHTTPd Server"
HREF="install.omnihttpd.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="install.iis.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Installation</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="install.omnihttpd.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="install.netscape-enterprise"
></A
>Servers-Netscape and iPlanet</H1
><P
>&#13;    This section contains notes and hints specific to Netscape and iPlanet
    installs of PHP, both for <A
HREF="install.netscape-enterprise.html#install.netscape.sun"
>Sun Solaris</A
>
    and <A
HREF="install.netscape-enterprise.html#install.netscape.windows"
>Windows</A
> versions.
   </P
><P
>&#13;    You can find more information about setting up PHP for
    the Netscape Enterprise Server here:
    <A
HREF="http://benoit.noss.free.fr/php/install-php4.html"
TARGET="_top"
>http://benoit.noss.free.fr/php/install-php4.html</A
>
   </P
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="install.netscape.sun"
></A
>Installing PHP with Netscape on Sun Solaris</H2
><P
>&#13;     To build PHP with NES or iPlanet web servers, enter the proper
     install directory for the 
     <A
HREF="install.configure.html#install.configure.with-nsapi"
>--with-nsapi</A
>
     = <TT
CLASS="replaceable"
><I
>DIR</I
></TT
> option. The default
     directory is usually <TT
CLASS="filename"
>/opt/netscape/suitespot/</TT
>.
     Please also read <TT
CLASS="filename"
>/php-xxx-version/sapi/nsapi/nsapi-readme.txt</TT
>. 
    </P
><P
>&#13;     <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="install.netscape-enterprise.solaris"
></A
><P
><B
>Example 3-10. Installation Example for Netscape Enterprise on Solaris</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="screen"
>Instructions for Sun Solaris 2.6 with Netscape Enterprise Server 3.6
From: bhager@invacare.com

1. Install the following packages from www.sunfreeware.com or another
download site: 

    flex-2_5_4a-sol26-sparc-local 
    gcc-2_95_2-sol26-sparc-local 
    gzip-1.2.4-sol26-sparc-local 
    perl-5_005_03-sol26-sparc-local 
    bison-1_25-sol26-sparc-local 
    make-3_76_1-sol26-sparc-local 
    m4-1_4-sol26-sparc-local 
    autoconf-2.13 
    automake-1.4 
    mysql-3.23.24-beta (if you want mysql support) 
    tar-1.13 (GNU tar) 

2. Make sure your path includes the proper directories
    PATH=.:/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin 
    export PATH 

3. gunzip php-x.x.x.tar.gz (if you have a .gz dist, otherwise go to 4) 
4. tar xvf php-x.x.x.tar 
5. cd ../php-x.x.x 

6. For the following step, make sure /opt/netscape/suitespot/ is where
   your netscape server is installed. Otherwise, change to correct path:
    /configure --with-mysql=/usr/local/mysql --with-nsapi=/opt/netscape/suitespot/ --enable-track-vars --enable-libgcc 
7. make 
8. make install</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
     After performing the base install and reading the appropriate
     readme file, you may need to performs some additional
     configuration steps.
    </P
><P
>&#13;     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:
     <TT
CLASS="filename"
>/path/to/server/https-servername/start</TT
> 
    </P
><P
>&#13;     You may also need to edit the configuration files that are
     located in:<TT
CLASS="filename"
>/path/to/server/https-servername/config/</TT
>.
    </P
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="install.netscape-enterprise.configure"
></A
><P
><B
>Example 3-11. 
      Configuration Example for Netscape Enterprise
     </B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="screen"
>Configuration Instructions for Netscape Enterprise Server
From: bhager@invacare.com

1. Add the following line to mime.types:
    type=magnus-internal/x-httpd-php exts=php

2. Add the following to obj.conf, 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.
    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!"

    &#60;object name="default"&#62;
    . 
    . 
    . 
    .#NOTE this next line should happen after all 'ObjectType' and before all 'AddLog' lines 
    Service fn="php4_execute" type="magnus-internal/x-httpd-php" 
    . 
    . 
    &#60;/Object&#62;


    &#60;Object name="x-httpd-php"&#62; 
    ObjectType fn="force-type" type="magnus-internal/x-httpd-php" 
    Service fn=php4_execute 
    &#60;/Object&#62; 


    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: 

    &#60;Object name="default"&#62; 
    AuthTrans fn=php4_auth_trans 
    . 
    . 
    . 
    . 
    &#60;/Object&#62; 

    To use PHP Authentication on a single directory, add the following: 

    &#60;Object ppath="d:\path\to\authenticated\dir\*"&#62; 
    AuthTrans fn=php4_auth_trans 
    &#60;/Object&#62;</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
><P
>&#13;     If you are running Netscape Enterprise 4.x, then you should use the following:
    </P
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN1486"
></A
><P
><B
>Example 3-12. Configuration Example for Netscape Enterprise 4.x</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="programlisting"
>Place these lines after the mime types init, and everything else is similar
to the example configuration above.
From: Graeme Hoose (GraemeHoose@BrightStation.com)

Init fn="load-modules" shlib="/path/to/server4/bin/libphp4.so" funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
Init fn="php4_init" LateInit="yes"</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="install.netscape.windows"
></A
>Installing PHP with Netscape on Windows</H2
><P
>&#13;      To Install PHP as CGI (for Netscape Enterprise Server,
      iPlanet, perhaps Fastrack), do the following:
    </P
><P
></P
><UL
><LI
><P
>&#13;       Copy <TT
CLASS="filename"
>php4ts.dll</TT
> to your systemroot
       (the directory where you installed windows)
      </P
></LI
><LI
><P
>&#13;       Make a file association from the command line.
       Type the following two lines:
       <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="programlisting"
>assoc .php=PHPScript
ftype PHPScript=c:\php\php.exe %1 %*</PRE
></TD
></TR
></TABLE
>
      </P
></LI
><LI
><P
>&#13;       In the Netscape Enterprise Administration Server create
       a dummy shellcgi directory and remove it just after (this
       step creates 5 important lines in obj.conf and allow the
       web server to handle shellcgi scripts).
      </P
></LI
><LI
><P
>&#13;       In the Netscape Enterprise Administration Server create
       a new mime type (Category: type,
       Content-Type: magnus-internal/shellcgi, File Suffix:php).
      </P
></LI
><LI
><P
>&#13;       Do it for each web server instance you want php to run
      </P
></LI
></UL
><P
>&#13;     More details about setting up
     PHP as a CGI executable can be found here:
     <A
HREF="http://benoit.noss.free.fr/php/install-php.html"
TARGET="_top"
>http://benoit.noss.free.fr/php/install-php.html</A
>
    </P
><P
>&#13;     To Install PHP as NSAPI (for Netscape Enterprise Server,
     iPlanet, perhaps Fastrack, do the following:
    </P
><P
></P
><UL
><LI
><P
>&#13;       Copy <TT
CLASS="filename"
>php4ts.dll</TT
> to your systemroot
       (the directory where you installed windows)
      </P
></LI
><LI
><P
>&#13;       Make a file association from the command line.
       Type the following two lines:
       <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="programlisting"
>assoc .php=PHPScript
ftype PHPScript=c:\php\php.exe %1 %*</PRE
></TD
></TR
></TABLE
>
      </P
></LI
><LI
><P
>&#13;       In the Netscape Enterprise Administration Server create
       a new mime type (Category: type,
       Content-Type: magnus-internal/x-httpd-php, File Suffix:php).
      </P
></LI
><LI
><P
>&#13;       Stop your web service and edit <TT
CLASS="filename"
>obj.conf</TT
>.
       At the end of the Init section, place these two lines
       (necessarily after mime type init!):
       <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="programlisting"
>Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="c:/php/sapi/php4nsapi.dll"
Init fn="php4_init" errorString="Failed to initialise PHP!"</PRE
></TD
></TR
></TABLE
>
      </P
></LI
><LI
><P
>&#13;       In The <TT
CLASS="literal"
>&#60; Object name="default" &#62;</TT
>
       section, place this line necessarily after all 'ObjectType'
       and before all 'AddLog' lines:
       <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="programlisting"
>Service fn="php4_execute" type="magnus-internal/x-httpd-php"</PRE
></TD
></TR
></TABLE
>
      </P
></LI
><LI
><P
>&#13;       At the end of the file, create a new object called
       <TT
CLASS="literal"
>x-httpd-php</TT
>, by inserting these lines:
       <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="programlisting"
>&#60;Object name="x-httpd-php"&#62;
ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn=php4_execute
&#60;/Object&#62;</PRE
></TD
></TR
></TABLE
>
      </P
></LI
><LI
><P
>&#13;       Restart your web service and apply changes
      </P
></LI
><LI
><P
>&#13;       Do it for each web server instance you want PHP to run
      </P
></LI
></UL
><P
>&#13;     More details about setting up
     PHP as an NSAPI filter can be found here:
     <A
HREF="http://benoit.noss.free.fr/php/install-php4.html"
TARGET="_top"
>http://benoit.noss.free.fr/php/install-php4.html</A
>
    </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="install.iis.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="install.omnihttpd.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Servers-IIS/PWS</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="installation.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Servers-OmniHTTPd Server</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>