PHP pages does not display in IIS 6 with Windows 2003

By: Ejay Hire  

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





Most Viewed Articles (in PHP )

Using Codeigniter for PHP application development

Comparison operators in PHP

Convert a hex string into a 32-bit IEEE 754 float number in PHP

preg_replace() and preg_replace_callback() in PHP

Installing PHP with nginx-server under windows

PHP file upload (Large Files)

PHP 5.1.4 INSTALLATION on Solaris 9 (Sparc)

Function to return number of digits of an integer in PHP

Building PHP 5.x with Apache2 on SuSE Professional 9.1/9.2

Installing PHP 5.x with Apache 2.x on HP UX 11i and configuring PHP 5.x with Oracle 9i

Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:......

Setting up PHP in Windows 2003 Server IIS7, and WinXP 64

error: "Service Unavailable" after installing PHP to a Windows XP x64 Pro

Function to force strict boolean values in PHP

Function to sort array by elements and count of element in PHP

Latest Articles (in PHP)

Comment on this tutorial