Solved

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

Posted on 2004-04-13
5
1,041 Views
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,
0
Comment
Question by:looknow12
  • 2
5 Comments
 
LVL 12

Expert Comment

by:venkateshwarr
Comment Utility
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


0
 
LVL 26

Accepted Solution

by:
skullnobrains earned 500 total points
Comment Utility
BROWSCAP.INI SYNTAX AND USE
http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2000/en/server/iis/htm/asp/comp1g11.htm

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.)

RUNNING APACHE
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 ?

RUNNING IIS
try this excellent link : why the file exists, why it is not up to date, download most recent...
http://www.garykeith.com/browsers/browscap.asp
<< 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. >>

http://www.microsoft.com/resources/documentation/WindowsServ/2003/enterprise/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/enterprise/proddocs/en-us/sag_TSHOOTresources.asp

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
0
 

Author Comment

by:looknow12
Comment Utility
You the man!!!!  That's the problem.  I enabled unknown ISAPI Extensions and it worked.  Thank you so much!!!!
0
 
LVL 26

Expert Comment

by:skullnobrains
Comment Utility
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.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now