Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 51108

A way to fix the Compatability Test

$
0
0

Replies: 0

The current compatibility test relies on PHP being installed as mod_php. Here is a method of testing that does not have this dependency.

Place the following in .htaccess, then check for the corresponding environment variables within the compatibility check PHP code.


<IfModule mod_deflate.c>
SetENV HTTP_MYMODS_deflate 1
</IfModule>
<IfModule mod_env.c>
SetENV HTTP_MYMODS_env 1
</IfModule>
<IfModule mod_expires.c>
SetENV HTTP_MYMODS_expires 1
</IfModule>
<IfModule mod_filter.c>
SetENV HTTP_MYMODS_filter 1
</IfModule>
<IfModule mod_ext_filter.c>
SetENV HTTP_MYMODS_ext_filter 1
</IfModule>
<IfModule mod_headers.c>
SetENV HTTP_MYMODS_headers 1
</IfModule>
<IfModule mod_mime.c>
SetENV HTTP_MYMODS_mime 1
</IfModule>
<IfModule mod_rewrite.c>
SetENV HTTP_MYMODS_rewrite 1
</IfModule>
<IfModule mod_setenvif.c>
SetENV HTTP_MYMODS_setenvif 1
</IfModule>

Viewing all articles
Browse latest Browse all 51108