PHP Suexec ForceType

If you are trying to use the ForceType directive in your .htaccess files with PHPsuexec, it will fail. To work around this, simply use SetHandler instead of ForceType.
example:

<Files r>
SetHandler application/x-httpd-php
</Files>

or

SetHandler application/x-httpd-php

The first one listed will cause files named “r” to be executed as PHP scripts, same as if it is named r.php basically. The 2nd example will parse every file through php.

No Responses to “PHP Suexec ForceType”

Post a Comment