home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 September / PCWorld_2002-09_cd.bin / Komunik / php422 / php-4.2.2-installer.exe / INSTALL.TXT < prev    next >
Encoding:
Text File  |  2002-07-22  |  27.5 KB  |  652 lines

  1. PHP/Windows Installation Notes
  2. ==============================
  3.  
  4. Installation on Windows 9x/Me/NT/2000/XP systems
  5. =============================================
  6.  
  7. There are two main ways to install PHP for Windows: either
  8. manually or by using the InstallShield installer.
  9.  
  10.  
  11. Windows InstallShield
  12. =====================
  13.  
  14.  The Windows PHP installer is available from the downloads page at
  15.  www.php.net. This installs the CGI version of PHP and, for IIS, PWS,
  16.  and Xitami, configures the web server as well.
  17.  Note that this version does *NOT* install any extensions or server
  18.  api versions of PHP.
  19.  
  20.  Install your selected HTTP server on your system and make sure
  21.  that it works.
  22.  
  23.  Run the executable installer and follow the instructions provided by
  24.  the installation wizard. Two types of installation are supported -
  25.  standard, which provides sensible defaults for all the settings it
  26.  can, and advanced, which asks questions as it goes along.
  27.  
  28.  The installation wizard gathers enough information to set up the
  29.  php.ini file and configure the web server to use PHP.
  30.  For IIS and also PWS on NT Workstation, a list of all the
  31.  nodes on the server with script map settings is displayed, and you
  32.  can choose those nodes to which you wish to add the PHP script
  33.  mappings.
  34.  
  35.  Once the installation has completed the installer will inform you
  36.  if you need to restart your system, restart the server, or just
  37.  start using PHP.
  38.  
  39. Windows Manual installation from zip binary distribution
  40. ========================================================
  41.  
  42.  This install guide will help you manually install and configure
  43.  PHP on your Windows 9x/Me/NT/2000/XP webservers. This guide was compiled by
  44.  Bob Silva. The original version can be found at
  45.  http://www.umesd.k12.or.us/php/win32install.html
  46.  
  47.  This guide provides manual installation support for:
  48.   Personal Web Server 3 and 4 or newer
  49.   Internet Information Server 3 and 4 or newer
  50.   Apache 1.3.x
  51.   OmniHTTPd 2.0b1 and up
  52.   Oreilly Website Pro
  53.   Xitami
  54.   Netscape Enterprise Server, iPlanet
  55.  
  56.  PHP 4 for Windows comes in two flavours - a CGI executable (php.exe),
  57.  and several SAPI modules (for exapmle php4isapi.dll). The latter form
  58.  is new to PHP 4, and provides significantly improved performance and
  59.  some new functionality. However, please note that the SAPI modules
  60.  are *NOT* yet considered to be production quality.
  61.  In particular, with the ISAPI module, you are likely to encounter serious
  62.  reliability problems especially on platforms older than W2K - you may
  63.  witness a lot of server 500 errors and suffer from other server modules
  64.  such as ASP also failing. You have been warned!
  65.  
  66.  The reason for this is that the PHP SAPI modules are using the
  67.  thread-safe version of the PHP code, which is new to PHP 4, and has
  68.  not yet been tested and pounded enough to be considered completely
  69.  stable, and there are actually a few known bugs. On the other hand,
  70.  some people have reported very good results with the SAPI modules,
  71.  and there a few reports of problems with the Apache module version.
  72.  In short - your mileage may vary;  If you need
  73.  absolute stability, trade the performance of the SAPI modules
  74.  with the stability of the CGI executable.
  75.  
  76.  If you choose one of the SAPI modules and use Windows 95, be sure
  77.  to download the DCOM update from
  78.  http://download.microsoft.com/msdownload/dcom/95/x86/en/dcom95.exe"
  79.  For the ISAPI module, an ISAPI 4.0 compliant Web server
  80.  is required (tested on IIS 4.0, PWS 4.0 and IIS 5.0). IIS 3.0 is
  81.  *NOT* supported; You should download and install the Windows NT 4.0
  82.  Option Pack with IIS 4.0 if you want native PHP support.
  83.  
  84.  The following steps should be performed on all installations
  85.  before the server specific instructions.
  86.  
  87.   Extract the distribution file to a directory of your choice.
  88.   C:\PHP\ is a good start.
  89.  
  90.   You need to ensure that the dlls which php uses can be found. The precise
  91.   dlls involved depend on which web server you use and whether you want to
  92.   run php as a cgi or as a server module. php4ts.dll is always used. If you are
  93.   using a server module (e.g. isapi or apache) then you will need the relevent
  94.   dll from the sapi folder. If you are using any php extension dlls then you
  95.   will need those as well. To make sure that the dlls can be found, you can
  96.   either copy them to the system directory (e.g. winnt/system32 or 
  97.   windows/system) or you can make sure that they live in the same directory
  98.   as the main php executable or dll your web server will use (e.g. php.exe,
  99.   php4apache.dll).
  100.  
  101.   Copy the file, php.ini-dist to your %WINDOWS% directory on
  102.   Windows 95/98 or to your %SYSTEMROOT% directory under Windows NT,
  103.   Windows 2000 or Windows XP and rename it to php.ini. Your %WINDOWS% or
  104.   %SYSTEMROOT% directory is typically:
  105.    c:\windows for Windows 95/98
  106.    c:\winnt or c:\winnt40 for NT/2000/XP servers
  107.  
  108.   Edit your php.ini file:
  109.  
  110.    You will need to change the 'extension_dir' setting to
  111.    point to your php-install-dir, or where you have placed
  112.    your 'php_*.dll' files. ex: c:\php
  113.  
  114.    If you are using OmniHTTPd, do not follow the next step.
  115.    Set the 'doc_root' to point to your webservers
  116.    document_root. ex: c:\apache\htdocs or c:\webroot
  117.  
  118.    Choose which extensions you would like to load when PHP
  119.    starts, noting that several extensions are already built
  120.    into the Windows release, see the section about
  121.    Windows extensions for details of the built-in extensions.
  122.    You can uncomment the: 'extension=php_*.dll' lines
  123.    in php.ini to load these extensions.
  124.  
  125.    Note that on a new installation it is advisable to first get
  126.    PHP working and tested without any extensions before enabling
  127.    them in php.ini.
  128.  
  129.    On PWS and IIS, you can set the browscap.ini
  130.    to point to: 'c:\windows\system\inetsrv\browscap.ini' on
  131.    Windows 9x/Me and 'c:\winnt\system32\inetsrv\browscap.ini'
  132.    on NT/2000/XP Server. 
  133.  
  134.    More information on the capabilities of browscap can be found here:
  135.  
  136.    http://www.php.net/manual/en/function.get-browser.php
  137.  
  138.    Note that the mibs directory supplied with the Windows distribution
  139.    contains support files for SNMP. This directory should be moved to
  140.    DRIVE:\usr\mibs (DRIVE being the drive where PHP is installed.)
  141.  
  142.  
  143. Installation of Windows extensions
  144. ==================================
  145.  
  146.  After installing PHP and a webserver on Windows, you will
  147.  probably want to install some extensions for added functionality.
  148.  The following table describes some of the extensions available. As
  149.  described in the manual installation steps, you can choose which
  150.  extensions you would like to load when PHP starts by uncommenting the:
  151.  extension=php_*.dll' lines in php.ini.
  152.  
  153.  
  154.  ATTENTION! ATTENTION! ATTENTION!
  155.    Some extra DLLs are required for some PHP extensions. Please copy the
  156.    bundled dlls from the 'dlls/' directory in distribution package to your
  157.    windows/system (Win9.x) or winnt/system32 (WinNT, Win2000, XP) directory.
  158.    If you already have these DLLs installed on your system,
  159.    overwrite them only if something is not working correctly.
  160.    Before overwriting them, it is a good idea to backup them or move them to
  161.    another folder - just in case something goes wrong.
  162.  
  163.    Download the latest version of the Microsoft Data Access Components (MDAC)
  164.    for your platform, especially Microsoft Windows 9x/NT4 users.
  165.    MDAC is available at http://www.microsoft.com/data/ .
  166.  
  167.    Also note that some extensions need 3rd party libraries, 
  168.    e.g. php_oci8.dll needs the Oracle 8 client libraries to be installed
  169.    on your system. These are not bundled with PHP distribution.
  170.  ATTENTION! ATTENTION! ATTENTION!
  171.  
  172.  
  173.  The DLLs for PHP extensions are prefixed with 'php_'.  This
  174.  prevents confusion between PHP extensions and their supporting
  175.  libraries.
  176.  
  177.  Note:
  178.  In PHP 4.0.5 MySQL, ODBC, FTP, Calendar, BCMath, COM, PCRE,
  179.  Session, WDDX and XML support is built-in. You don't need to
  180.  load any additional extensions in order to use these functions.
  181.  
  182.  Examples of PHP Extensions
  183.  
  184.   php_dbase.dll     dBase functions
  185.   php_filepro.dll   Read-only access to Filepro databases
  186.   php_gd.dll        GD library functions for GIF manipulation
  187.   php_hyperwave.dll HyperWave functions
  188.   php_imap.dll      IMAP functions
  189.   php_ldap.dll      LDAP functions
  190.   php_mssql.dll     MSSQL client (requires MSSQL DB-Libraries)
  191.   php_snmp.dll      SNMP get and walk functions (NT only!)
  192.   php_zlib.dll      ZLib compression functions
  193.  
  194.  For more information see the section about Windows extensions at
  195.  http://www.php.net/manual/en/install-windows.php#install.windows.extensions
  196.  
  197.  
  198. Web server configuration
  199. ========================
  200.  
  201. Due to a security issue with PHP on various win32 webservers, we have 
  202. enabled functionality to disable calls to the php binary directly. This 
  203. has meant we have 2 new php ini lines:
  204.  
  205.     cgi.force_redirect 0|1
  206.     cgi.redirect_status_env ENV_VAR_NAME
  207.  
  208. if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 
  209. (iPlanet) web servers, you MAY need to set an environment variable name that PHP
  210. will look for to know it is OK to continue execution.  Setting this variable MAY
  211. cause security issues, KNOW WHAT YOU ARE DOING FIRST.
  212.  
  213. if you are unsure, set cgi.force_redirect to 1, and see if your scripts execute.
  214.  
  215.  Installing PHP on Windows with Apache 1.3.x
  216.  
  217.   There are two ways to set up PHP to work with Apache 1.3.x
  218.   on Windows. One is to use the CGI binary (php.exe),
  219.   the other is to use the Apache module dll. In either case
  220.   you need to stop the Apache server, and edit your
  221.   srm.conf or httpd.conf to configure Apache to work with PHP.
  222.  
  223.   Although there can be a few variations of configuring PHP
  224.   under Apache, these are simple enough to be used by the
  225.   newcomer. Please consult the Apache Docs for further
  226.   configuration directives.
  227.  
  228.   Now that version 4.1 introduces a safer sapi module, we recommend
  229.   that you configure PHP as a module in Apache.
  230.  
  231.   To do this, you should move php4ts.dll to the windows/system (for Windows 9x/Me)
  232.   or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any
  233.   older file. Then you should add the following three lines to your Apache
  234.   conf file: (swap c:/php/ for your PHP install path)
  235.  
  236.    LoadModule php4_module c:/php/sapi/php4apache.dll
  237.    AddModule mod_php4.c
  238.    AddType application/x-httpd-php .php
  239.  
  240. If you wish to install PHP as a CGI binary, (the sapi is much better)
  241. you need to enable the apache security fix in your php.ini by 
  242. setting cgi.force_redirect = 1. Then, insert these lines to your conf file:
  243.  
  244.    ScriptAlias /php/ "c:/php/"
  245.    AddType application/x-httpd-php .php
  246.    Action application/x-httpd-php "/php/php.exe"
  247.  
  248.   Please note that you cannot use php-cli.exe with your webserver. You have
  249.   to use php.exe which can be found in the sapi directory of your 
  250.   PHP distribution.
  251.  
  252.   As a further precaution, we recommend you change the "/php/"
  253.   ScriptAlias to something more random, to prevent any attempts to 
  254.   call your binary (like the Code Red scripts) for returning a response
  255.   other than 404.
  256.   
  257.   Remember when you have finished to restart the server, for example,
  258.    NET STOP APACHE
  259.   followed by
  260.    NET START APACHE
  261.  
  262.   To use the source code highlighting feature, add the following
  263.   line to your apache httpd.conf file:
  264.  
  265.     AddType application/x-httpd-php-source .phps
  266.  
  267.   Note, this will only work when you install php as a sapi module.
  268.   If you wish to use this feature with the cgi binary, create a new
  269.   file, and use the show_source("path/to/original_file.php"); function.
  270.  
  271.   On Win-Apache all backslashes in a path statement such
  272.   as: "c:\directory\file.ext", must be converted to
  273.   forward slashes.
  274.  
  275. ----------------------------------------------------------
  276.  
  277.  Installing PHP on Windows with IIS/PWS
  278.  
  279.   This section contains notes and hints specific to IIS (Microsoft
  280.   Internet Information Server). Installing PHP for PWS/IIS 3 and
  281.   PWS/IIS 4 or newer versions.
  282.  
  283.   Windows and PWS/IIS 3 - including PWS on Win 9x/ME
  284.  
  285.    The recommended method for configuring these servers is to use
  286.    the REG file incuded with the distribution (pws-php4cgi.reg).
  287.    You may want to edit this file and make sure the extensions and PHP
  288.    install directories match your configuration - once you have done
  289.    this, just double click on the file and it will update your registry.
  290.    Alternatively, you can follow the steps below to do it manually.
  291.  
  292.    WARNING:
  293.     These steps involve working directly with the Windows
  294.     registry. One error here can leave your system in an unstable
  295.     state. We highly recommend that you back up your registry
  296.     first. The PHP Development team will not be held responsible if
  297.     you damage your registry.
  298.  
  299.    Run Regedit.
  300.    Navigate to:
  301.     HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/W3Svc/Parameters/ScriptMap
  302.    On the edit menu select: New->String Value.
  303.    Type in the extension you wish to use for your php scripts. ex: .php
  304.    Double click on the new string value and enter the path to
  305.    php.exe in the value data field.
  306.    ex: c:\php\sapi\php.exe
  307.    Repeat these steps for each extension you wish to associate
  308.    with PHP scripts.
  309.    Please note that you cannot use php-cli.exe with your webserver, you need
  310.    to use php.exe which can be found in the sapi directory of your PHP
  311.    distribution.
  312.  
  313.    The following steps do not affect the web server installation and only
  314.    apply if you want your php scripts to be executed when they are run
  315.    from the command line (ex. run c:\myscripts\test.php) or by double
  316.    clicking on them in a directory viewer window. You may wish to skip
  317.    this step as you might prefer the php files to load into a text
  318.    editor when you double click on them.
  319.  
  320.    Now navigate to: HKEY_CLASSES_ROOT
  321.    On the edit menu select: New->Key
  322.    Name the key to the extension you setup in the previous
  323.    section. ex: .php
  324.    Highlight the new key and in the right side pane, double click
  325.    the "default value" and enter phpfile.
  326.    Repeat the last step for each extension you set up in the
  327.    previous section.
  328.    Now create another New->Key under
  329.    HKEY_CLASSES_ROOT and name it phpfile
  330.    Highlight the new key 'phpfile' and in the
  331.    right side pane, double click the "default value" and enter
  332.    PHP Script.
  333.    Right click on the 'phpfile' key and select
  334.    New->Key, name it Shell.
  335.    Right click on the 'Shell' key and select
  336.    New->Key, name it open.
  337.    Right click on the 'open' key and select
  338.    New->Key, name it command.
  339.    Highlight the new key 'command' and in the
  340.    right side pane, double click the "default value" and enter
  341.    the path to php.exe ex: c:\php\php.exe -q %1
  342.    (don't forget the '%1').
  343.    Exit Regedit.
  344.    If using PWS on Windows, reboot to reload the registry.
  345.    PWS and IIS 3 users now have a fully operational system. IIS 3
  346.    users can use a nifty tool available at
  347.    http://www.genusa.com/iis/iiscfg.html
  348.    from Steven Genusa to configure their script maps.
  349.  
  350.   Windows NT/2000/XP and IIS 4 or newer and PWS 4 on NT Workstation or W2K non server editions
  351.  
  352.    To install PHP on an NT/2000/XP Server running IIS 4 or newer,
  353.    follow these instructions. You have two options to set up
  354.    PHP, using the CGI binary (php.exe) or with the ISAPI module.
  355.  
  356.    In either case, you need to start the Microsoft Management
  357.    Console (may appear as 'Internet Services Manager', either
  358.    in your Windows NT 4.0 Option Pack branch or the Control
  359.    Panel=>Administrative Tools under Windows 2000). Then
  360.    right click on your Web server node (this will most probably
  361.    appear as 'Default Web Server'), and select 'Properties'.
  362.  
  363.    If you want to use the CGI binary, do the following:
  364.     Under 'Home Directory', 'Virtual Directory', or
  365.     'Directory', click on the 'Configuration' button,
  366.     and then enter the App Mappings tab.
  367.  
  368.     Click Add, and in the Executable box, type:
  369.     c:\php\sapi\php.exe (assuming that you have unzipped PHP in c:\php\).
  370.  
  371.     Please note that you cannot use php-cli.exe with your webserver, you need
  372.     to use php.exe which can be found in the sapi directory of your PHP
  373.     distribution.
  374.  
  375.     In the Extension box, type the file name extension you want
  376.     associated with PHP scripts. Leave 'Method exclusions'
  377.     blank, and check the Script engine checkbox. You may also
  378.     like to check the 'check that file exists' box - for a small
  379.     performance penalty, IIS (or PWS) will check that the script
  380.     file exists and sort out authentication before firing up php.
  381.     This means that you will get sensible 404 style error messages
  382.     instead of cgi errors complaing that php did not output any data.
  383.  
  384.     You must repeat from 'Click Add...' for each extension you
  385.     want associated with PHP scripts.
  386.     (.php is recommended. although .phtml and .php3 may be
  387.     required for legacy applications.)
  388.  
  389.     Set up the appropriate security. (This is done in Internet
  390.     Service Manager), and if your NT Server uses NTFS file system,
  391.     add execute rights for I_USR_ to the directory that contains
  392.     php.exe
  393.  
  394.    To use the ISAPI module, do the following:
  395.  
  396.     If you don't want to perform HTTP Authentication using PHP,
  397.     you can (and should) skip this step. Under ISAPI Filters,
  398.     add a new ISAPI filter. Use PHP as the filter name, and
  399.     supply a path to the php4isapi.dll.
  400.  
  401.     Under 'Home Directory', click on the 'Configuration' button.
  402.     Add a new entry to the Application Mappings. Use the path
  403.     to the php4isapi.dll as the Executable, supply .php as the
  404.     extension, leave Method exclusions blank, and check the
  405.     Script engine checkbox.
  406.  
  407.     Stop IIS completely (net stop iisadmin)
  408.     Start IIS again  (net start w3svc)
  409.  
  410. ----------------------------------------------------------
  411.  
  412.  Installing PHP on Windows with OmniHTTPd Server
  413.  
  414.   This section contains notes and hints specific to
  415.   OmniHTTPd 2.0b1 and up for Windows
  416.  
  417.   This has got to be the easiest config there is:
  418.  
  419.   Step 1: Install OmniHTTPd server.
  420.   Step 2: Right click on the blue OmniHTTPd icon in the system
  421.           tray and select 'Properties'
  422.   Step 3: Click on 'Web Server Global Settings'
  423.   Step 4: On the 'External' tab, enter:
  424.           virtual = .php | actual = c:\php\sapi\php.exe
  425.           and use the Add button.
  426.   Step 5: On the Mime tab, enter:
  427.           virtual = wwwserver/stdcgi | actual = .php
  428.           and use the Add button.
  429.   Step 6: Click 'OK'
  430.  
  431.   Repeat steps 2 - 6 for each extension you want to associate with PHP.
  432.   NOTE:
  433.    Some OmniHTTPd packages come with built in PHP support.
  434.    You can choose at setup time to do a custom setup, and
  435.    uncheck the PHP component. We recommend you to use the latest
  436.    PHP binaries. Some OmniHTTPd servers come with PHP 4 beta
  437.    distributions, so you should choose not to set up
  438.    the built in support, but install your own. If the server
  439.    is already on your machine, use the Replace button in Step
  440.    4 and 5 to set the new, correct information.
  441.  
  442. ----------------------------------------------------------
  443.  
  444.  Installing PHP on Windows with Oreilly Website Pro
  445.  
  446.   This section contains notes and hints specific to Oreilly
  447.   Website Pro 2.5 and up for Windows
  448.  
  449.   This list describes how to set up the PHP CGI binary
  450.   or the ISAPI module to work with Oreilly Website Pro
  451.   on Windows.
  452.  
  453.    Edit the Server Properties and select the tab "Mapping".
  454.  
  455.    From the List select "Associations" and enter the desired
  456.    extension (".php") and the path to the CGI exe (ex. c:\php\sapi\php.exe)
  457.    or the ISAPI dll file (ex. c:\php\sapi\php4isapi.dll).
  458.  
  459.    Please note that you cannot use php-cli.exe with your webserver, you need
  460.    to use php.exe which can be found in the sapi directory of your PHP
  461.    distribution.
  462.  
  463.    Select "Content Types" add the same extension ".php"
  464.    and enter the content type. If you choose the CGI exe
  465.    file, enter 'wwwserver/shellcgi', if you chose the
  466.    ISAPI module, enter 'wwwserver/isapi' (both without quotes).
  467.  
  468. ----------------------------------------------------------
  469.  
  470.  Installing PHP on Windows with Xitami
  471.  
  472.   This section contains notes and hints specific to Xitami.
  473.  
  474.   This list describes how to set up the PHP CGI binary
  475.   to work with Xitami on Windows.
  476.  
  477.    Make sure the webserver is running, and point
  478.    your browser to xitamis admin console
  479.    (usually http://127.0.0.1/admin), and click on
  480.    Configuration.
  481.  
  482.    Navigate to the Filters, and put the
  483.    extension which php should parse (i.e. .php)
  484.    into the field File extensions (.xxx).
  485.  
  486.    In Filter command or script put the path and name
  487.    of your php executable i.e. c:\php\sapi\php.exe.
  488.    
  489.    Please note that you cannot use php-cli.exe with your webserver, you need
  490.    to use php.exe which can be found in the sapi directory of your PHP
  491.    distribution.
  492.  
  493.    Press the 'Save' icon.
  494.  
  495. ----------------------------------------------------------
  496.  
  497.  Installing PHP on Windows with Netscape servers.
  498.  
  499.  
  500.   To Install PHP as CGI (for Netscape Enterprise Server, iPlanet, perhaps Fastrack)
  501.  
  502.    Copy php4ts.dll to your systemroot (the directory where you installed windows)
  503.  
  504.    Make a file assocition from the command line (type the 2 following lines)
  505.     assoc .php=PHPScript
  506.     ftype PHPScript=c:\php\sapi\php.exe %1 %*
  507.  
  508.    Please note that you cannot use php-cli.exe with your webserver, you need
  509.    to use php.exe which can be found in the sapi directory of your PHP
  510.    distribution.
  511.  
  512.    In the Netscape Enterprise Administration Server create a dummy shellcgi
  513.    directory and remove it just after (this step creates 5 important lines in
  514.    obj.conf and allow the web server to handle shellcgi scripts)
  515.  
  516.    In the Netscape Enterprise Administration Server create a new mime type
  517.    (Category:type,Content-Type:magnus-internal/shellcgi,File Suffix:php)
  518.  
  519.    Do it for each web server instance you want php to run
  520.  
  521.    More details http://benoit.noss.free.fr/php/install-php.html
  522.  
  523.  
  524.   To Install PHP as NSAPI (for Netscape Enterprise Server, iPlanet, perhaps Fastrack)
  525.  
  526.    Copy php4ts.dll to your systemroot (the directory where you installed windows)
  527.  
  528.    Make a file assocition from the command line (type the 2 following lines)
  529.     assoc .php=PHPScript
  530.     ftype PHPScript=c:\php\php.exe %1 %*
  531.  
  532.    In the Netscape Enterprise Administration Server create a new mime type
  533.     (Category:type,Content-Type:magnus-internal/x-httpd-php,File Suffix:php)
  534.  
  535.    Stop your web service and edit obj.conf
  536.     At the end of the Init section, place these 2 lines (necessarily after mime type init!)
  537.     Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="c:/php/sapi/php4nsapi.dll"
  538.     Init fn="php4_init" errorString="Failed to initialise PHP!"
  539.  
  540.    In The < Object name="default" > section, place this line necessarily after all 'ObjectType' and before all 'AddLog' lines!
  541.     Service fn="php4_execute" type="magnus-internal/x-httpd-php"
  542.  
  543.    At the end of the file, create a new object called x-httpd-php, by inserting this lines
  544.     <Object name="x-httpd-php">
  545.     ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
  546.     Service fn=php4_execute
  547.     </Object>
  548.  
  549.    Restart your web service and apply changes
  550.  
  551.    Do it for each web server instance you want php to run
  552.  
  553.    More details http://benoit.noss.free.fr/php/install-php4.html
  554.  
  555. ----------------------------------------------------------
  556.  
  557. Problems?
  558. =========
  559.  
  560.  Read the FAQ
  561.  
  562.   Some problems are more common than others.  The most common ones
  563.   are listed in the PHP FAQ, found at www.php.net/FAQ.php
  564.  
  565.  Common problems with Windows
  566.  
  567.   The following problems often occur with IIS/PWS, but some points may
  568.   also apply to other servers.
  569.  
  570.   For test purposes it is best to use just a simple test script. One
  571.   containing just the following line will suffice:
  572.   <?php phpinfo();?>
  573.  
  574.   You have installed PHP, but when try to access a php script file via your
  575.   browser, you get a blank screen:
  576.  
  577.    Do a 'view source' in the web browser and you will probably find that you
  578.    can see the source code of your php script. This means that the web server
  579.    did not send the script to php for interpretation. Something is wrong with
  580.    the server configuration - double check the server configuration against
  581.    the php installation instructions.
  582.  
  583.   You have installed PHP, but when try to access a php script file via your
  584.   browser, you get a server 500 error:
  585.  
  586.    Something went wrong when the server tried to run PHP. To get to see a
  587.    sensible error message, from the command line, change to the directory
  588.    containing php.exe and run <literal>php.exe -i</literal>
  589.    If php has any problems running, then a suitable error message will be displayed
  590.    which will give you a clue as to what needs to be done next.
  591.    If you get a screen full of html codes (the output of the phpinfo() function) then
  592.    php is working ok, and your problem may be related to your server configuration
  593.    which you should double check.
  594.  
  595.   You have installed PHP, but when try to access a php script file via your
  596.   browser, you get the error:
  597.    cgi error:
  598.    The specified CGI application misbehaved by not returning a complete set of
  599.    HTTP headers. The headers it did return are:
  600.  
  601.    This error message means that php failed to output anything at all.
  602.    From the command line hange to the directory containing php.exe. Run
  603.    php.exe -i
  604.    If php has any problems running, then a suitable
  605.    error message will be displayed which will give you a clue as to what needs to
  606.    be done next. If you get a screen full of html codes (the output of the
  607.    phpinfo() function) then php is working ok.
  608.  
  609.    Once php is working at the command line, try accessing the php script via the browser again.
  610.    If it still fails then it could be one of the following:
  611.  
  612.    file permissions on your php script, php.exe, php4ts.dll, php.ini or any php
  613.    extensions you are trying to load are such that the anonymous internet user
  614.    ISUR_<machinename> cannot access them.
  615.  
  616.    The script file does not exist (or possibly isn't where you think it is
  617.    relative to your web root directory). Note that for IIS you can trap this error by ticking
  618.    the 'check file exists' box when setting up the script mappings in the Internet Services
  619.    Manager. If a script file does not exist then the server will return a 404 error instead.
  620.    There is also the additional benefit that IIS will do any authentication required for you
  621.    based on the NTLanMan permissions on your script file.
  622.  
  623.  Other problems
  624.   If you are still stuck, someone on the PHP installation mailing list may be
  625.   able to help you. You should check out the archive first, in case
  626.   someone already answered someone else who had the same problem as
  627.   you. The archives are available from the support page on www.php.net
  628.   To subscribe to the PHP installation mailing list, send an empty mail to:
  629.  
  630.   php-install-subscribe@lists.php.net
  631.  
  632.   The mailing list address is php-install@lists.php.net
  633.  
  634.   If you want to get help on the mailing list, please try to be
  635.   precise and give the necessary details about your environment
  636.   (which operating system, what PHP version, what web server, if
  637.   ou are running PHP as CGI or a server module, etc.), and
  638.   referably enough code to make others able to reproduce and test
  639.   our problem.
  640.  
  641. Bug reports
  642. ===========
  643.  
  644.  If you think you have found a bug in PHP, please report it.  The
  645.  PHP developers probably don't know about it, and unless you
  646.  report it, chances are it won't be fixed. You can report bugs
  647.  using the bug-tracking system at http://bugs.php.net/
  648.  
  649.  Read the Bugs-Dos-And-Donts at
  650.  http://bugs.php.net/bugs-dos-and-donts.php
  651.  _BEFORE_ submitting any bug reports!
  652.