I Have Apache2-Prefork running using mod_php and php 5.2.
And i also have php-fpm with php 5.3 running inside a chrooted environment (listening to an unix socket which would be reachable for apache)
Can someone please guide me how i have to configure a Virtualhost to use Fastcgi. (I've been searching the web for an example, but didnt find anything...)
And there is a point that confuses me...
if php runs across an include or fopen in which context will that be executed? Apaches or the chrooted environment? Can i still pass php directives over httpd.conf and .htaccess?
The whole FastCGI thing is still pretty confusing for me :) thanks in advance for any help!
Update: I'm pretty sure that i have to use mod_fastcgi and the FastCgiExternalServer directive. But i dont know how to tell apache that he sould do that only to .php files