You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Cassiel <ra...@gmail.com> on 2008/09/12 16:21:56 UTC

[users@httpd] PHP5 .phtml files problem

Hi you all,

I am trying to configure a pmapper based web site but can get it working.
If I try to access the document root firefox open the save file dialog box
instead of execute the phtml script file.

I have everything (at least I believe.. hope so..) configured as it should
be:
- php5 mod is loaded correctly and displayed by apache2 -t -D DUMP_MODULES
- AddType line contains .phtml extension as well

Any ideas/suggestion about this?

regards
raffaele

Re: [users@httpd] PHP5 .phtml files problem

Posted by Cassiel <ra...@gmail.com>.
Thank you for helping, but it doesn't work.

I looked at the apache2 conf files on the testing machine and doesn't seem
to be any difference at all but the distribution, lenny on the testing one
and etch on the production. May the problem belong to this?

regards


2008/9/12 Norman Peelman <np...@cfl.rr.com>

> Cassiel wrote:
>
>> Hi you all,
>>
>> I am trying to configure a pmapper based web site but can get it working.
>> If I try to access the document root firefox open the save file dialog box
>> instead of execute the phtml script file.
>>
>> I have everything (at least I believe.. hope so..) configured as it should
>> be:
>> - php5 mod is loaded correctly and displayed by apache2 -t -D DUMP_MODULES
>> - AddType line contains .phtml extension as well
>>
>> Any ideas/suggestion about this?
>>
>> regards
>> raffaele
>>
> Other than you should use:
>
> AddHandler php5-script .phtml
>
> instead of AddType...
>
>
> --
> Norman
> Registered Linux user #461062
> -Have you been to www.apache.org yet?-
>
> ---------------------------------------------------------------------
> 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] PHP5 .phtml files problem

Posted by Norman Peelman <np...@cfl.rr.com>.
Cassiel wrote:
> Hi you all,
>
> I am trying to configure a pmapper based web site but can get it working.
> If I try to access the document root firefox open the save file dialog 
> box instead of execute the phtml script file.
>
> I have everything (at least I believe.. hope so..) configured as it 
> should be:
> - php5 mod is loaded correctly and displayed by apache2 -t -D DUMP_MODULES
> - AddType line contains .phtml extension as well
>
> Any ideas/suggestion about this?
>
> regards
> raffaele
Other than you should use:

AddHandler php5-script .phtml

instead of AddType...


-- 
Norman
Registered Linux user #461062
-Have you been to www.apache.org yet?-

---------------------------------------------------------------------
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