Forum Moderators: coopster

Message Too Old, No Replies

php5 + Firefox

Broswer wont open php files

         

Topspeed

4:46 pm on Nov 3, 2004 (gmt 0)

10+ Year Member



Hi Guys,

First let me say thanks for the brilliant site, I could not have installed apache/mysql/admin/php without it.

Now my problem is this:

When i use internet explorer i can access my phpadmin via localhost
Yet when I use firefox the download manager asks which program i wish to use to open the php file...

any clues?

am using firefox 1.0 pr/php5

DrDoc

5:31 pm on Nov 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld! [WebmasterWorld.com]

Which MIME type is your server reporting?

Topspeed

6:35 am on Nov 4, 2004 (gmt 0)

10+ Year Member



I have approx 48 hrs worth of appache/mysql server experience so please bear with me...:)

mime types in the httpd file (appache) are set i believe to

Defaulttype text/plain

which i presume is incorrect for firefox, although this setup works fine for IE..(aghh)
I know i can use IE but am on an anti-MS campaign at the moment....lol

If there is a workaround/fix could you let me have it in 'simpleton' terms as my head is already bizzing from the apache/php/sql installation...!

Thanks

coopster

10:33 am on Nov 4, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



That Apache setting should be OK, that's the DefaultType [httpd.apache.org]. Have you added the LoadModule settings for PHP in your Apache configuration?
# For PHP 5 do something like this: 
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

<edit>
Scratch that, I see you can open a .php page in IE...
</edit>

You can use WebmasterWorld server headers [webmasterworld.com] check to see what headers are being served up.

Topspeed

11:10 am on Nov 4, 2004 (gmt 0)

10+ Year Member



Everything runs smoothly in IE which is a great shame...! as i always hype up Firefox.

What happens is this...

So far i am using the address

[localost...]
Which brings me to the phpmyadmin home page

"Welcome to phpMyAdmin 2.6.0-pl1"

Yet when i Use Firefox i am asked which application would i like to use to open the file

Yet if i use a php info script i get pages of server/php info

[localhost...]

This i presume means that ive sent you in totally the wrong direction (**light dawning **) as firefox HAS opened the .php extension on this occasion.

So what am i doing wrong?

php_info is located in /appache2/htdocs
whereas index.php is located in /appache2/htdoc/pma/index.php