Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22
  1. #1
    Member
    Join Date
    May 2007
    Posts
    12

    Default FireFox and PHP "application/x-httpd-php" Error

    Okay i recently re installed cpanel on my vps, i recovered all my old accounts but now when i visit these websites via firefox i get a "Opening" windows statings something about a "application/x-httpd-php"

    Here is a screenshot of what comes up:

    http://img257.imageshack.us/img257/6991/errorel3.png

    How can I prevent this from happening? Thank you.

  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    48

    Default

    Please check "DirectoryIndex" option in httpd.conf file and see if index.htm , index.html , index.php and others are listed ?

    And verify the file name with same extension in domain's document root. You need root access for this work..

    Let us know if need any clarification.

    Thanks,

  3. #3
    Member
    Join Date
    May 2007
    Posts
    12

    Default

    Do they need commas or are they spaced with just a gap? Because they are there just but seperated with a space.

  4. #4
    Member
    Join Date
    Apr 2007
    Posts
    48

    Default

    Here is the format .

    =================

    <IfModule mod_dir.c>
    DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm default.html home.htm
    </IfModule>

    ==================

    Thanks,

  5. #5
    Member
    Join Date
    May 2007
    Posts
    12

    Default

    Nope, it didnt make any difference and the message is still coming up, I also rebooted http server.

    The file is located in

    /usr /local /apache /conf / httpd.conf

    isnt it?

  6. #6
    Member
    Join Date
    Apr 2007
    Posts
    48

    Default

    Yes , that is the configuration file ... that's right.

    Can you check if AddType is installed for your server. Check if the following entries are present in httpd.conf

    ================
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php-source .phps
    AddType application/x-httpd-php .phtml
    ================

    If not , add them and restart apache.

    Thanks,

  7. #7
    Member
    Join Date
    May 2007
    Posts
    12

    Default

    How can i check if its installed? Those entries are in my httpd.conf file aswell!

  8. #8
    Member
    Join Date
    Apr 2007
    Posts
    48

    Default

    Then it is already installed.

    URL works in other browsers ??? such as in opera and other ?

  9. #9
    Member
    Join Date
    May 2007
    Posts
    12

    Default

    It works in internet explore just not firefox

    Just found out its when i put www. in front of the url it comes up with the message!
    Last edited by RuneOwn; 05-27-2007 at 12:29 PM.

  10. #10
    Member
    Join Date
    Apr 2007
    Posts
    48

    Default

    Which version of PHP you are running ?

  11. #11
    Member
    Join Date
    Apr 2007
    Posts
    48

    Default

    If it is php4 check the entries are same in htppd.conf file

    ==============
    LoadModule php4_module modules/libphp4.so
    AddType application/x-httpd-php .php .phtml
    ==============

    But if it is php5 then firs line will be changed as "LoadModule php5_module modules/libphp5.so"

  12. #12
    Member
    Join Date
    Jul 2006
    Posts
    21

    Default

    I am having this exact problem. I have rebuilt apache with php5 and php4 but no luck.

    Any ideas?

    Thanks

  13. #13
    Member
    Join Date
    Jul 2006
    Posts
    21

    Default

    Turns out that actually firefox seems to like caching everything.. if you go to tools>clear private data> tick cache and clear it your php files will work.

    Well worked for me anyway!!

  14. #14
    Member
    Join Date
    Apr 2007
    Posts
    100

    Default

    Quote Originally Posted by will_raymo2000 View Post
    Turns out that actually firefox seems to like caching everything.. if you go to tools>clear private data> tick cache and clear it your php files will work.

    Well worked for me anyway!!
    Yup, I was going to say this but Raymo beat me to it.

    Every time I've seen this, clearing the FF cache gets rid of the problem. Seems to be specific to FF.

  15. #15
    Member eNetHosts's Avatar
    Join Date
    Apr 2007
    Posts
    195

    Default

    Clarification Please

    Work's fine in IE? and work's fine in FF when the url has www. in?

    or just doesn't work totally in FF?

    +

    What version of PHP/Apache/cPanel are you running?

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 01-03-2012, 12:34 PM
  2. Replies: 0
    Last Post: 09-14-2010, 02:50 AM
  3. Replies: 2
    Last Post: 04-14-2009, 05:00 PM
  4. Replies: 4
    Last Post: 03-15-2008, 07:04 AM
  5. Replies: 5
    Last Post: 01-05-2007, 12:41 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube