Is there a way to make PHP and thttpd work together in CGI mode? There are some pieces of information here and there but our naive attempts failed so far as it seems like PHP doesn't understand the environment variables set by thttpd and therefore fails to find the script file.
Building php as thttpd module is not desirable due to custom build configuration (it's an embedded device) - but possible as a last resort. However, I'd like to avoid that using CGI approach if possible.