Page 1 of 1

PHP not running correctly on Windows 2003

Posted: Fri Nov 24, 2006 4:46 pm
by amir
Hi All:

There seems to be a bit of a problem with my PHP on my application server. Below is a description of the problem:

Preamble:

1. The IIS server 6 is up and running Windows Server 2003. Web sites are running fine and ASP, ASP.Net and CFM applications are working fine.
2. PHP 4.x used to run before server was upgraded and PHP 5.x.
3. The PHP folder is c:\php with all the standard permissions.

The installation process:
1. Used the latest zipped distribution not the Windows installer and set it up in c:\php.
2. Used php.ini-recommended as the basics to the php.ini.
3. Uncommented cgi.force.redirect and set it to 0.
4. placed browscap.ini file in the extras dir. and set the browscap.ini path.
5. Set the extension_dir variable to point to the ext dir. and uncomments all required dlls from the extension list.

Server side:
1. Added c:\php into PATH environment variable. (tested path.)
2. Added into the registry: [HKEY_LOCAL_MACHINE\SOFTWARE\PHP] > IniFilePath = C:\PHP.

IIS Server:
1. Add php5isapi.dll as a web service extension and 'allowed' same.
2. Set/added default 'Web Sites' mapping to 'php5isapi.dll', php extension with 'GET,POST,HEAD'.
3. IIS has been restarted. (For that matter so has the server.)

Testing:
1. Logged on as Administrator.
2. Ran a simple php file from localhost.

Result:
404 error: The page cannot be found... (Note: will run other files with different extension at the same location.)

This is a strnage one. It should be straight forward but the system responds with a blank.

Resolution is urgent and evidently very difficult. Any help would be greatly appreciated.

Regards

Posted: Fri Nov 24, 2006 4:54 pm
by volka
http://de2.php.net/manual/en/install.windows.iis.php
With IIS 6 (2003 Server), open up the IIS Manager, go to Web Service Extensions, choose "Add a new Web service extension", enter in a name such as PHP, choose the Add button and for the value browse to either the ISAPI file (php4isapi.dll or php5isapi.dll) or CGI (php.exe or php-cgi.exe) then check "Set extension status to Allowed" and click OK
Did you do that?