httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] configure apache to parse php
Date Sun, 15 Aug 2010 18:33:54 GMT

On 15 Aug 2010, at 16:56, e-letter wrote:

> Readers,
> 
> According to the php manual, apache should be configured to parse php, e.g.:
> 
> <FilesMatch \.php$>
>    SetHandler application/x-httpd-php
> </FilesMatch

That's one option, though AddHandler would be simpler.
> 
> Apparently this should be part of the addtype directive.

No.  AddType for handlers (like php) was a grotty hack needed in Apache 1.0.
It's been obsolete since AddHandler was introduced in Apache 1.1 (1996).
If you see it recommended, treat that as a warning sign about whatever
you're reading at the time.

> I don't
> understand which file I am to edit and add the code shown above. Can
> somebody help please?

See the docs from your package.  There's also a page about it at the
httpd wiki (follow links from httpd.apache.org).

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


Mime
View raw message