FireFox Prompts "Opening" Dialogue Pop Up - Looks for "application/octet-stream"

Posted on 2008-11-05
Last Modified: 2013-12-13
Im having a problem with a page ( showing up in FireFox. It shows up fine in IE. When I load the page in FF it prompts a dialogue box to open the file which it says is "application/octet-stream". The files are HTML and PHP based. It looks like a header issue but Im not too familiar with server errors and things of this nature. Any help is appreciated.
Question by:it-kourt
    LVL 15

    Expert Comment

    yeah sounds like the .php filetype is not properly registered in the server/system.

    the php mimetype is application/x-httpd-php

    If you are running apache on windows, you probably need to add this to your httpd.conf and restart apache

    AddHandler application/x-httpd-php .php
    LVL 6

    Expert Comment

    The webserver probably has an incorrect mimetype and firefox will not open it by default. Internet explorer is not be that picky of what it opens and does not follow the RFC as firefox does.
    LVL 11

    Accepted Solution

    Your IIS server is not properly configured to interpret PHP scripts. The pages are returned as-is. The source shows: <?php header("Content-type:text/html"); ?> which means that IIS doesn't pass the file to the PHP interpreter.

    Go through the whole PHP / IIS configuration again, to make sure you didn't skip a step somewhere.
    LVL 15

    Expert Comment

    If PHP was installed on your machine and you are using IIS, go to your IIS manager and find your "website" and somewhere in there you have to allow/deny services that can run on that website. When you install PHP, it's not "enabled" by default, you have to go in there and allow it to run.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    #Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
    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…
    This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

    732 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

    23 Experts available now in Live!

    Get 1:1 Help Now