Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Wrong Mime-Type for php

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  How - Main Page via HTTP but Make Everything else..  
Author Message
usenet_spam

External


Since: Jul 01, 2004
Posts: 1



(Msg. 1) Posted: Thu Jul 01, 2004 10:16 pm
Post subject: Wrong Mime-Type for php
Archived from groups: alt>apache>configuration (more info?)

Hello,

I updated to apache 2.0.50 on Fedora 1. When I open a link like
http://myserver/mydir/?zone=1
Apache delivers the page with content-type "application/x-httpd-source",
which causes Mozilla to download the file instead of displaying it. I
have the following lines in my httpd.conf:

AddType application/x-httpd-php .php
DirectoryIndex index.php index.htm index.html index.html.var

btw, when I open the page with
http://myserver/mydir/index.php?zone=1
or
http://myserver/mydir/
everything is fine... but leaving the file name away plus adding
parameters doesn't work.

Any ideas? Thanks...

Kevin.

--
IIS Installed Components Check:
www.bier-voting.de/objcheck
ICQ 2186573

 >> Stay informed about: Wrong Mime-Type for php 
Back to top
Login to vote
alvaro_quitar_1

External


Since: Oct 31, 2003
Posts: 86



(Msg. 2) Posted: Fri Jul 02, 2004 11:56 am
Post subject: Re: Wrong Mime-Type for php [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*** Kevin Kempfer wrote/escribió (Thu, 01 Jul 2004 19:16:42 +0200):
 > AddType application/x-httpd-php .php

This is what my config looks like in Red Hat 9:

$ cat /etc/httpd/conf.d/php.conf
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php4_module modules/libphp4.so

#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php


--
--
-- Álvaro G. Vicario - Burgos, Spain
--<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Wrong Mime-Type for php 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache 2.0 error message mod_jrun20.c wrong version type??.. - hello there I did install apache 2.0 on a windows 2000 prof. so I can run coldfusion MX with it. it installed just dandy then when I installed Coldfusion I got the above error message?? JRUN?? I'm not running jrun lol any clues please thanks santhi

Apache 2 WMV - mime types no help! - Hello Everyone, Looking for a hand with a problem I have. I have a website which is running on apache 2. One of the pages has an embeded wmv file in it. The movie will not play - it just sits there. I have added the wmv file type to the mime.types..

pb with conf/apache-mime.types? - Hello, When i test my new install (Apache+php) with the famous script hello.html, i have a blank screen. I edit tne httpd.conf file and verify the presence of this line : <IfDefine HAVE_PHP4> LoadModule php4_module extramodules/libphp4.so..

I'm sure I'm doing something wrong - I have a RH9 Linux machine looking at a small secure network on one side and my company's intranet (with Internet access from there). I am trying to configure my machine to act as a proxy using Apache, giving the secure network Internet access. ..

What is wrong with .htaccess - I have a webpage that I want to login into using .htaccess. The problem is I try to login through the dialog prompt and once I do it says that there was a problem and to contact the system administrator. I check the Apache logs and it says basically..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]