Hi,
I'm trying to use php with cgi-fcgi but it appears php always closes the file descriptor and so my cgi-fcgi always dies with a FCGX_PROTOCOL_ERROR (core dumps when I try to bind). This is what I do:
% cgi-fcgi -start -connect localhost:9999 test.php
% cgi-fcgi -bind -connect localhost:9999
test.php just contains:
#!/path/to/php/with/fastcgi/support
<?php
phpinfo();
?>
I've placed some debug statements in php/sapi/fastcgi/fastcgi.c and php/main/main.c but to no avail. Can someone point me to which files in php that I should be concentrating on or some documentation/examples on how to use cgi-fcgi with php? Any help or suggestions would be appreciated.
I'm using php-4.0.6 and fastcgi-devkit-2.1 on a Solaris 2.5 with Netscape Enterprise Server 3.5.
Thanks,
Thai