Re: Strange problem with mime-type

From: Date: Mon, 03 Dec 2001 01:49:56 +0000
Subject: Re: Strange problem with mime-type
Groups: php.install 
Request: Send a blank email to php-install+get-5171@lists.php.net to get a copy of this message
Hello, This is an easy answer. You MUST define this in addition to the others listed in the httpd.conf file: index.php index.php3 index.php4 index.phtml index.phps this(ese) lines are found under the heading: <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.php default.html default.htm </IfModule> Your ISP should know this. Simply tell him/ her to add them. :-) Best wishes, Chris > Hi > > I am using PHP on a remotely-hosted server so don't have access to the > httpd.conf file. The host has installed both PHP3 and PHP4 and > instructed us to use .php extensions for PHP3 files, and .php4 > extensions for PHP 4. This is fine, but I have encountered a weird > problem. If the home page in a particular directory is called > index.html I can access it fine using > http://www.mydomain.com/directoryname/. But if the index file > is called > index.php or index.php4, and I use the above syntax (i.e. not > specifying the filename), instead of the page displaying I am prompted > to download a file of type x-httpd-php. Yet, if I instead go to > http://www.mydomain.com/directoryname/index.php the page is > correctly > interpreted and displayed as it should be. Tech support have been no > help at all, and I'm no Apache expert. Can anyone suggest what I should > do to fix this problem?? > > Thanks! > > Veronica > > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net -- end ............................................ This email was sent using DNSWATCH WebMail. "Get an account today!" http://www.dnswatch.com/dnswm112/

« previous php.install (#5171) next »