Php-cgi not responding

I have a script set up to use php-cgi because it needs to have shell access. My .htaccess is

AddType php-cgi .php

I tried it once and it worked for a little bit, but then it stopped responding. When I rename my .htaccess to something else, it immediately works, but I can’t use it correctly without shell access. Anything I should be doing differently?