I Cant believe this hasnt been answered yet. Im looking for a similar thing, and have had trouble finding anything.
What I did was compile php with the option --disable-force-cgi-redirect
then, add this line to the top of the script:
#!/usr/bin/php (or whatever the path is)
make it executable. run it from the command line to test.
make sure the directory in apache has ExecCGI option enabled
then in the httpd.conf:
AddHandler cgi-script .cgi
This should work just fine
Chris
ps. sorry this response is 8 months late...