I've tried a variety of combinations, the following being my last attempt:

Addtype text/vnd.wap.wml wml
Addtype image/vnd.wap.wbmp wbmp
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.wmlc wmlc
AddType application/vnd.wap.wmlscriptc wmlsc

AddType application/x-httpd-php .wml

How can I get Apache 2.2.11 to parse .wml files as PHP?

Accepted Answer

AddType application/x-httpd-php .wml

Should work. I may be possible (in case of SuPHP or custom mime-type settings) that the x-httpd-php part is not correct. Please check your configuration what mimetype is actually used for PHP.

Written by Frenck
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki