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

RuneOwn

Member
May 24, 2007
12
0
151
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.
 

bashcpanel

Well-Known Member
Apr 15, 2007
48
0
156
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, :) :)
 

RuneOwn

Member
May 24, 2007
12
0
151
Do they need commas or are they spaced with just a gap? Because they are there just but seperated with a space.
 

bashcpanel

Well-Known Member
Apr 15, 2007
48
0
156
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,
 

RuneOwn

Member
May 24, 2007
12
0
151
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?
 

bashcpanel

Well-Known Member
Apr 15, 2007
48
0
156
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,
 

bashcpanel

Well-Known Member
Apr 15, 2007
48
0
156
Then it is already installed.

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

RuneOwn

Member
May 24, 2007
12
0
151
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:

bashcpanel

Well-Known Member
Apr 15, 2007
48
0
156
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"
 
Jul 4, 2006
21
0
151
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!!
 

jonwatson

Well-Known Member
Apr 1, 2007
101
1
168
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.
 

eNetHosts

Well-Known Member
Apr 21, 2007
191
0
166
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?
 

Gopi

Member
Aug 2, 2007
19
0
51
Hi Snowman30, Check for www in your dns entry (ie) yourdomainname.db file under /var/named/

www should be a sub domain of your main domain
 
Last edited:

Gopi

Member
Aug 2, 2007
19
0
51
Can you give me your domain name, Will check your issue.... If your are interested
 

Gopi

Member
Aug 2, 2007
19
0
51
Did you check vhostentery in http conf file???

it should be like this

<vhost....>
..............
serveraliases domainname.com www.domainname.com
..............
..............
</vhost....>