PHP, IIS 6, and Windows 2003

From: Ejay Hire (EjayHire_at_hotmail.com)
Date: 04/23/04


Date: Fri, 23 Apr 2004 10:55:25 -0500

I could not get PHP pages to display in IIS 6 with Windows 2003, using the
default install of the stable binaries from php.net.

Here is the solution I found.

The default install registers the .php extension as belonging to
c:\php\php.exe. This is correct, but it's faster to use the ISAPI
extension.

To do this,
1. Open the IIS Management console
2. Expand the server, right click on "Web Sites" and click Properties
3. Open the "ISAPI Filters" foldertab
4. Click Add
5. Enter PHP in the Filter Name box.
6. Click Browse and then Browse to your php4isapi.dll.
6. Click ok -> Apply -> ok

... Once this is completed, your PHP scripts still won't run. The problem
is that you have to define and enable PHP as a "Web Service Extension".

To do this,
1. Open the IIS Management console
2. Expand the server, and expand the "Web Services Extensions"
3. Click "Add a new Web services Extension"
4. Enter PHP in the Extension Name box.
5. In the required files box, Browse to your php directory and add
php4isapi.dll.
6. Click ok -> Apply -> ok

Last but not least, You may or may not need to do the following,
-Set the extensions path in the php.ini file if you are going to use any
extensions , i.e. php_mssql.dll
-I had to copy the php4isapi.dll from c:\php\isapi to c:\php, YMMV
-Give the webserver user (IUSR_MACHINENAME in most cases) read and execute
access to php4isapi.dll and php4ts.dll

Good Luck,
Ejay Hire
EjayHire@hotmail.com



Relevant Pages

  • Re: Installing PHP on SBS 2003
    ... Windows binaries at http://downloads.php.net/ilia/php-4.3.5RC1-Win32.zip ... be able to forego the next several steps required for a manual install. ... I extracted php to the root directory of my chosen drive. ... > You may then need to click on Add a new Web Service Extension to add the ...
    (microsoft.public.windows.server.sbs)
  • PHP, IIS 6, and Windows 2003
    ... I could not get PHP pages to display in IIS 6 with Windows 2003, ... The default install registers the .php extension as belonging to ... Open the IIS Management console ... is that you have to define and enable PHP as a "Web Service Extension". ...
    (alt.php)
  • Re: PHP POST results in 404
    ... I think you have not completed PHP configuration. ... Web Service Extension configuration). ... This 404 looks to be generated by PHP itself (you configured IIS to properly ...
    (microsoft.public.inetserver.iis)
  • Re: Last resort, php
    ... Sounds like PHP is not an allowed web service extension. ... RIP wrote: ... > running with php, worked great, was easy to setup, no ...
    (microsoft.public.inetserver.iis)
  • RE: [PHP] Xampp question, pretty much 0T
    ... I suggest you look into VMWare. ... versions (player, server, etc) if you don't want Workstation (which I ... [PHP] Xampp question, pretty much 0T ... recommended it to me when I asked for an easy install of AMP. ...
    (php.general)