Printed from http://kimbriggs.com

Installing PHP with Apache on Windows 2000

Just the notes in plain text.

Background: This is really basic stuff. The audience is primarily me, or someone who just wants to get php working on their desktop system in order to test before uploading scripts to a real web server. You should have already installed and tested the Apache server.

Gotcha: If you're not too interested in system administration and just wanted to get going, you might have chosen to install the PHP "Windows Installer" binary. This makes it real easy and, like it says, works with IIS right away. Note, however, that the description of this installation says "CGI only". So, you can ignore any stuff you find on the web about loading modules (even if it's the prefered method). Either re-install with a full version or follow the steps below.

  1. Assuming that you put the "php.ini-dist" file in "C:\WINNT" and renamed it to "php.ini". I think this is the only step to install it with IIS.
  2. Below is for the httpd.conf file in ../Apache/conf/
    Add a line after ScriptAlias for cgi-bin (around line 600).
    SriptAlias /php/ "C:/php/"
  3. Add to the Document Type section under Add Types (around line 725).
    AddType application/x-httpd-php .php
  4. Add somewhere, like after "Actions" (around line 860).
    Action application/x-httpd-php "/php/php.exe"
  5. Alter line about DirectoryIndex (around line 360).
    DirectoryIndex index.php index.html
 
 
CC License Ubuntu Get OpenOffice Graphics by GIMP Bluefish Editor Eliminate DRM Get Firefox php.net Play Ogg what's this?