Apache 2.4.60 and mod_php warning

This is in the Apache 2.4.60 notes:

Note: Some legacy uses of the 'AddType' directive to connect a
request to a handler must be ported to 'SetHandler' after this fix.


If you don't take action and you've got something like this:
Code:
<IfModule php_module>
    AddType application/x-httpd-php .php
</IfModule>
All of a sudden Apache will deliver up your PHP pages as source instead of passing the page to PHP.

I'm trying this as a rush-change but not fully tested (but so far so good):
Code:
<FilesMatch "\.php$">
    SetHandler application/x-httpd-php
</FilesMatch>
EDIT: and yes, yes, I'll get off mod_php one day!
 
Back
Top