Php – How to run mod_php and fastcgi side-by-side

apache-2.2fastcgimod-phpPHP

How would it be possible to run certain scripts (this could be in either a vhost or directory setting in the apache conf) to run as mod_php when the current server configuration is running FPM/FastCGI?

Server OS: Ubuntu-Server 11.04

Best Answer

Well, the easy answer would be just to install mod_php and php_fcgi - and do not define the x-application PHP handler in any of your configs. Then it would use mod_php.