#18841 [Bgs]: Mozilla web browser is prompted to download index.php

From: Date: Sat, 10 Aug 2002 17:51:54 +0000
Subject: #18841 [Bgs]: Mozilla web browser is prompted to download index.php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16453@lists.php.net to get a copy of this message
ID: 18841 User updated by: cjs@math.utah.edu Reported By: cjs@math.utah.edu Status: Bogus Bug Type: *Web Server problem Operating System: FreeBSD PHP Version: 4.2.2 New Comment: Perhaps it's not a bug, BUT... Apache was sending out index.php as a plain text file with all visible PHP code including database hosts and passwords. (it was sending out ANY .php file as text) I noticed that the FreeBSD ports did not uninstall the 4.2.1 version of PHP prior to installing 4.2.2, which I concluded to be the problem; I removed 4.2.1 and 4.2.2 and then reinstalled 4.2.2. Everything seems to be working properly now. I also had to clear the Cache in my web browser. If it's not a bug, then at least there are some set-up issues here that might need some documenting. Thank you, Chris. Previous Comments: ------------------------------------------------------------------------ [2002-08-10 08:04:12] tal@php.net Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-08-09 18:56:57] cjs@math.utah.edu I upgraded PHP to 4.2.2 via the FreeBSD ports and now when people make requests, they are prompted to download the index.php source which has database info! This only happens for some directories, otherwise, PHP / Apache does what it is supposed to for other directories. I noticed that if directories have other files beginning with "index", then the problem occurred. For example, index.dev.php or index.test.php, etc... I don't think Apache needs to be recompiled after a PHP upgrade. Thanks. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18841&edit=1

« previous php.bugs (#16453) next »