Installing PHP3 or PHP4 under WindowsNT
as CGI for Netscape Enterprise Server
or for iPlanet

click here if you want the NSAPI installation page
click here if you don't know the difference between NSAPI and CGI

1st step : Installing PHP on the WindowsNT server

  1. Copy the php files on your server
  2. Edit php.ini-dist and rename php.ini-dist to php.ini
  3. Make a file association under Windows NT
  4. Test the 1st step

2nd step : Configuring Netscape Enterprise Server for PHP

  1. Introduction : shell-CGI directory or shell-CGI as Filetype ?
  2. Specifying shell-CGI as Filetype
  3. Test the 2nd step

Where to get more information

  1. The PHP site
  2. The Netscape Enterprise Server Administrator's guide
    (see Extending your server with programs [programs.html])

1st step : Installing PHP on the WindowsNT server

  1. Copy the php files on your server

  2. Edit php.ini-dist
  3. Make a file association under Windows NT
  4. Test the 1st step
    1. Create a C:\test.php file with a single line like
      <? echo("Nothing to write"); ?>
    2. Create a C:\test.bat file with 2 lines
      test.php
      pause
    3. double-clic on test.bat
    4. If you see something like
      PHP4.0.4 PHP3.0.18
      X-Powered-By: PHP/4.0.3 Content type: text/html
      Content-type: text/htmlOR 
        Nothing to write
      Nothing to write 
      then the NT association works!!

2nd step : Configuring Netscape Enterprise Server for PHP

  1. shell-CGI directory or shell-CGI as Filetype?
  2. Specifying shell-CGI as Filetype
    1. Due to a bug of the Nestcape/iPlanet administration console,
      you have to create a dummy shell-cgi directory (for ex:/dummy maps c:/temp)
      Remove it just after, (it will create 4 lines in obj.conf)
      If you don't do that you will get (no way to service request in the netscape error log)
    2. First Activate CGI as a file type
      From the Server Manager of NES 3.6.x, choose Programs|CGI File Type and Set the Radio Group to 'YES'
      Click here for screenshot
    3. From the Server Manager of NES 3.6.x, choose Server Preferences|MIME Types.
    4. On the MIME Types page, add a new MIME type.
      Set the Type field to type, and the content type to magnus-internal/shellcgi
      In the File Suffix field, enter php Click here for screenshot
  3. Test the 2nd step
    1. Put the test.php file in the document root of your server
    2. Then type http://server/test.php
    If you can see "nothing to write" in your browser then it works!

Where to get more information

  1. An other How-to
  2. The PHP documentation
  3. Download The Netscape Enterprise Server Administrator's guide
    (see Extending your server with programs [programs.html])
    or iPlanet Web Server, Enterprise Edition 4.1 Administrator's Guide
Don't hesitate sending me feedback or questions