Cannot open "D:\WINDOWS\system32\inetsrv\browscap.ini" & Error 404 running PHP

Posted on 2004-04-13
Medium Priority
Last Modified: 2013-12-13
I have installed PHP on a Windows 2003 server.  Anytime I try to browse any PHP file, the server beeps and displays a windows message, Cannot open "D:\WINDOWS\system32\inetsrv\browscap.ini".  The browser times out as soon as I click OK for this message (on the server) display a 404 message.

Please help.

Thank you,
Question by:looknow12
  • 2
LVL 12

Expert Comment

ID: 10815630
search for browscap.ini in your D: drive... and find the location.
and in the php.ini file search for browscap anc change the file location to new location for example...

browscap = c:\windows\system32\inetsrv\browscap.ini

LVL 27

Accepted Solution

skullnobrains earned 2000 total points
ID: 10887023

actually, under apache this file does not seem to be present all the time so there should be some default values somewhere, or just no values as the client gives his anyway.

typically, the server would only complain upon startup. (maybe quite a few times)

sample files are downloadable everywhere (just google the name of the file.)

if the file exists, you of course must check that php has reading rights over that file.
these will usually be inherited from apache, so your apache user must have rights over these.

try and run apache as admin just for testing, and see if that same error pops again.

is php running as a module or cgi ?

try this excellent link : why the file exists, why it is not up to date, download most recent...
<< Despite my pleas to have the link from the PHP website removed they refuse to do so. Until their get_browser() function is fixed I do not recommend using my browscap.ini file with PHP. >>
it has been but dunno on which version.

iis was probably a good guess if it would not work without that file. do you really need to use iis ?
nb iis is rather useless and messy with php (but fine with asp and all VBs)
if u had a number for the error (0xXXXXXX), try and paste it in ggogle and in msde. usually gives good results.

the browsecap.ini error is likely no to be the cause of the 404 message.
IIS 6.0 is fully locked down by default
When you install IIS, the service is installed in a highly secure and locked mode. By default, IIS serves only static content, which means that features such as Active Server Pages (ASP), ASP.NET, Indexing Service
Indexing Service
Software that provides search functions for documents stored on disk, allowing users to search for specific document text or properties., server-side includes (SSI), Web Distributed Authoring and Versioning (WebDAV) Web Distributed Authoring and Versioning (WebDAV)
An application protocol related to Hypertext Transfer Protocol (HTTP) 1.1 that allows clients to transparently publish and manage resources on the World Wide Web., and FrontPage Server Extensions do not work unless you enable them. If you do not enable these features after installing IIS, IIS returns a 404 error. To serve dynamic content and unlock these features, you must enable them by using IIS Manager. Administrators can enable or disable IIS functionality based on the needs of the organization. For more information, see "Enabling or Disabling Dynamic Content" in IIS 6.0 Help. Also, if an application extension is not mapped in IIS, IIS returns a 404 error. To map an application extension, see "Setting Application Mappings" in IIS 6.0 Help. For more information about troubleshooting 404 errors, see "Troubleshooting" in IIS 6.0 Help. For information about how to open IIS 6.0 Help, see To view Internet Information Services (IIS) 6.0 Help. >>


could be the reason for both the 404 and the error message (which even on iis would probably not lock the server though this is microsoft technology so nothing's too sure.)
i guess u more basically need to allow php on that server.

hope it helps

Author Comment

ID: 10914716
You the man!!!!  That's the problem.  I enabled unknown ISAPI Extensions and it worked.  Thank you so much!!!!
LVL 27

Expert Comment

ID: 10916562
i'll google a little to find about that ISAPI extentions which i actually dunno much about, lol

cool if u got it. good luck for the future, and feel free to ask more.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question