How to force Apache to parse all files in a given directory with PHP

Add the following to an .htaccess file in that directory:

SetHandler application/x-httpd-php

Or add the following to your Apache conf:

<Directory "/path/to/directory">
        SetHandler application/x-httpd-php
</Directory>

And now, back to our regularly scheduled programming…

comments: be first!

name
blog (optional)
comment

monthchunks

license

Justinsomnia is licensed under a Creative Commons Attribution 3.0 License.

Please see my Attribution Policy for more information.