Solved

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

Posted on 2004-04-13
5
1,051 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 12

Expert Comment

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


0
 
LVL 27

Accepted Solution

by:
skullnobrains earned 500 total points
ID: 10887023
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
ID: 10914716
You the man!!!!  That's the problem.  I enabled unknown ISAPI Extensions and it worked.  Thank you so much!!!!
0
 
LVL 27

Expert Comment

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

628 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