The phpcgi handler executes PHP (http://www.php.net) scripts using the CGI interface. As long as this module doesn't use any native library but the PHP CGI, it will work with PHP3, PHP4 and PHP5.
It inheritates the CGI Executing module parameters and adds a new one:
The most common example of this module use is:
Extension php, php4 { Handler phpcgi }
If you want to use a different PHP interpreter for both PHP4 and PHP5, you just have to use two different extension and asociate a interpreter which each one:
Extension php4 { Handler phpcgi { Interpreter /usr/bin/php4-cgi } } Extension php5, php { Handler phpcgi { Interpreter /usr/bin/php5-cgi } }