You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Robin Wilson <r....@rmplc.co.uk> on 2004/07/30 09:54:38 UTC
[users@httpd] Apache: Tries to download php files
Hi all,
I have installed Apache2 and php using the rpm files included in my distro.
Apache now works fine, except that when I try to access a php file, the
browser tries to save it.
I have looked on the internet and added in the line to my httpd.conf file
(in fact to my mod_mime-defaults file...because this is included into the
httpd.conf file):
"AddType application/a-httpd-php .php"
It still isn't working tho.
Is that the right line to have? If not, what should I do to make it work?
Thanks in advance
Robin
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 30/07/04
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache: Tries to download php files
Posted by Luis Moreira <lu...@esinnovation.pt>.
Do you have
Action application/x-httpd-php <path-to-php.exe>/php.exe
on your httpd.conf ?
Luis
Robin Wilson wrote:
>Hi
>
>I've done what you have suggested and it still tries to download the php
>file.
>
>Any other ideas?
>
>Robin
>----- Original Message -----
>From: "Eimantas Vaiciunas" <ei...@sc.vu.lt>
>To: <us...@httpd.apache.org>
>Sent: Friday, July 30, 2004 8:58 AM
>Subject: Re: [users@httpd] Apache: Tries to download php files
>
>
>
>
>>On Friday 30 July 2004 09:54, Robin Wilson wrote:
>>
>>
>>>Hi all,
>>>
>>>I have installed Apache2 and php using the rpm files included in my
>>>
>>>
>distro.
>
>
>>>Apache now works fine, except that when I try to access a php file, the
>>>browser tries to save it.
>>>
>>>
>>The problem is that apache server does not pass the php files to php
>>interpreter.
>>
>>
>>
>>>I have looked on the internet and added in the line to my httpd.conf
>>>
>>>
>file
>
>
>>>(in fact to my mod_mime-defaults file...because this is included into
>>>
>>>
>the
>
>
>>>httpd.conf file):
>>>
>>>"AddType application/a-httpd-php .php"
>>>
>>>
>>Remove everything you've added to mod_mime-defaults file. You must add new
>>mime types only by using AddType directives:
>>AddType application/x-httpd-php .php
>>AddType application/x-httpd-php-source .phps (optional)
>>
>>-----
>>Eimis
>>
>>
>>---------------------------------------------------------------------
>>The official User-To-User support forum of the Apache HTTP Server Project.
>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.732 / Virus Database: 486 - Release Date: 30/07/04
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
RE: [users@httpd] Apache: Tries to download php files
Posted by Rafael Faura <rf...@bassy.net>.
> Hi
>
> I've done what you have suggested and it still tries to
> download the php
> file.
>
> Any other ideas?
I don't know if this link will help you, but worth a try:
http://www.php.net/manual/en/install.apache2.php
----------------------------
Rafael Faura Cucalón
rfaura@bassy.net
Consultor - IT Consultant
Bassy Servicios Informaticos
www.bassy.net
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache: Tries to download php files
Posted by Robin Wilson <r....@rmplc.co.uk>.
Hi
I've done what you have suggested and it still tries to download the php
file.
Any other ideas?
Robin
----- Original Message -----
From: "Eimantas Vaiciunas" <ei...@sc.vu.lt>
To: <us...@httpd.apache.org>
Sent: Friday, July 30, 2004 8:58 AM
Subject: Re: [users@httpd] Apache: Tries to download php files
> On Friday 30 July 2004 09:54, Robin Wilson wrote:
> > Hi all,
> >
> > I have installed Apache2 and php using the rpm files included in my
distro.
> > Apache now works fine, except that when I try to access a php file, the
> > browser tries to save it.
> The problem is that apache server does not pass the php files to php
> interpreter.
>
> > I have looked on the internet and added in the line to my httpd.conf
file
> > (in fact to my mod_mime-defaults file...because this is included into
the
> > httpd.conf file):
> >
> > "AddType application/a-httpd-php .php"
> Remove everything you've added to mod_mime-defaults file. You must add new
> mime types only by using AddType directives:
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps (optional)
>
> -----
> Eimis
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 30/07/04
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache: Tries to download php files
Posted by Eimantas Vaiciunas <ei...@sc.vu.lt>.
On Friday 30 July 2004 09:54, Robin Wilson wrote:
> Hi all,
>
> I have installed Apache2 and php using the rpm files included in my distro.
> Apache now works fine, except that when I try to access a php file, the
> browser tries to save it.
The problem is that apache server does not pass the php files to php
interpreter.
> I have looked on the internet and added in the line to my httpd.conf file
> (in fact to my mod_mime-defaults file...because this is included into the
> httpd.conf file):
>
> "AddType application/a-httpd-php .php"
Remove everything you've added to mod_mime-defaults file. You must add new
mime types only by using AddType directives:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps (optional)
-----
Eimis
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org