Approach from http://funcptr.net/2010/11/14/apache-mod_fastcgi-and-php-with-php-fpm/.