PHP 5.2.5 on Windows 2003

March 4, 2008 on 2:59 pm | In Coding, Geeky | No Comments

There is an oddity in the PHP 5.2.5 installer (and possibly earlier) on Windows 2003 in that it’s default install path is C:\Program Files\PHP. Nothing odd there and indeed the install finishes without issue with the PHP Application Extension and PHP Web Extension configured automatically in IIS (I was tried with both ISAPI and CGI) however when you try to view a PHP page in IIS you get a 404.

It turns out that the path of the PHP Application Extension is in 8.3 format whilst the Web Extension is in LFN format – as far as IIS is concerned that these are two different paths. Editing the PHP Application Extension to include the LFN path enclosed in quotes ( e.g. “C:\Program Files\PHP\php5isapi.dll” ) makes IIS happy.

So if you find you install PHP to a path with non 8.3 paths and you get a 404 on PHP pages then edit the Application Extension to get it going!

No Comments yet

TrackBack URI

Sorry, the comment form is closed at this time.

Powered by WordPress with custom theme based on "Pool" by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^

Bad Behavior has blocked 55 access attempts in the last 7 days.