httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [users@httpd] problem with apache and php files
Date Wed, 16 Aug 2006 07:57:30 GMT
post your vhosts

if it's downloading the PHP file it's either a caching issue in your 
browser, or it's because Apache isn't forwarding to PHP to process the 
file under some condition.


BGREE07 wrote:
> It could also be a cache problem. 
> If at some time in the past you had Apache incorrectly configured and
> browsed to, you would have been asked to download the file.
> If you don't clear your cache, every time you browse to, the
> same will happen.
> I've had this problem before with PHP4 and Apache2 and no matter how
> many times I refreshed firefox, it still gave me the same dialogue.
> Clear cache, close firefox, open it again and see if that works.
> -----Original Message-----
> From: Alain Wolf [] 
> Sent: 15 August 2006 06:45 PM
> To:
> Subject: Re: [users@httpd] problem with apache and php files
> Scott Bowden wrote:
>> I'm having some difficulty getting apache2 configured, and after doing
>> quite a lot of googling, I'm pretty well stumped as to where to go.
>> Let me preface this by saying that it's entirely possible I've done
>> something very, very stupid.
>> That said:
>> I recently moved to a new server, and in the process upgraded to
>> apache 2.0.54, having been running apache 1.3 for quite some time. I
>> host around 6 or 7 different websites off this setup using vhosts. A
>> few of these websites use php4.
>> I seem to have gotten myself into the following situation:
>> There are three sites:
>>  1.
>>  2.
>>  3.
>> The first two are actually the same site. The third is a separate
>> site. All three have "index.php" in their document root - though not
>> the same 'index.php'. (1 and 2 share one, 3 has it's own, entirely
>> other).
>> PHP works perfectly on It also works perfectly on
>> However, on, every time I try to load up
>> the root (ie., Apache 2 attempts to let me (using
>> FireFox) download the file, instead of parsing it.
>> It gets stranger.
>> If I go to , it works perfectly. Only
>> when going to the root ( do I see this behavior.
>> Every PHP file on the server works exactly as it should. Only if I
>> load up the root is there a problem.
>> Stranger still: if I choose to download the file, the transaction does
>> not appear in any log files. It's as though it never happened.
>> Nothing I try gets this to reproduce on and
>> Only on the bare can I get this to
>> occur.
>> I've looked through my configs, and nothing jumps out at me. I've even
>> switched the hosts around. I moved the config for
>> into the config file for - no dice (the error occurred). I
>> changed the config so that it was now set (via the
>> ServerName directive) to be, and it worked
>> flawlessly.
>> In short, no matter which of the three configurations I use, they work
>> flawlessly if their ServerName is anything other than ''.
>> If their ServerName is '', every single one of them
>> attempts to have the user download index.php if the user tries to load
>> ''.
>> I'm fairly convinced this is not a PHP issue, because as I've said, 2
>> of the 3 sites work flawlessly - and in fact, all of them work
>> flawlessly if they are not vhosts for ''. So, I'm left with
>> this being an apache configuration issue.
>> Anyone have any ideas?
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server
>> Project.
>> See <URL:> for more info.
>> To unsubscribe, e-mail:
>>   "   from the digest:
>> For additional commands, e-mail:
> Could be a DNS issue too. When DNS fails, nowadays browers tend to
> auto-correct things. Which sometimes gives you unexpected effects while
> debugging.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message