Problems Installing/Running PHP on Windows 2003.

Problem:
After installing PHP on Windows 2003, attempts to run php pages return a "404 page not found" error message.
Solution:

Read the "User contributed notes" section in the PHP installation instructions for Windows on the php.org web site.

A common cause of this 404 error is that the installer puts short file names in 8.3 format in the php extension settings in the IIS Admin Manager settings, and IIS can't handle them correctly. Change these to the full long filename format. For example, if you installed php in the default location of C:\Program Files\PHP:

Start->Control Panel->Administrative Tools->Internet Information Services->(select web site) ->Properties->Home Directory->Configuration->Mapping

Then change the Executable Path for .php files from the short names like "C:\Program~\PHP\php5is~1.DLL" (or whatever crazy path) to the full long names like "C:\Program Files\PHP\php5isapi.dll". Use the browse button to navigate to and select the correct file to avoid typing errors.
Another suggestion is to use: c:\php as the install directory for PHP

REMEMBER to move an updated php.ini to \windows folder.

Article Details

Article ID:
13
Category:
Date added:
2010-12-07 20:34:43
Views:
558
Rating (Votes):
(543)