ID: 9852 Comment by: [EMAIL PROTECTED] Reported By: ron dot baldwin at sourceprose dot com Status: Closed Bug Type: IIS related Operating System: Windows 2000 PHP Version: 4.2.1 New Comment:
Good afternoon We are running Win2000 Server, IIS5, PHP and the same irretating "CGI App Misbehaved" error occurs. We have tried all above suggestions posted and still no joy. Anyone ? Previous Comments: ------------------------------------------------------------------------ [2003-09-18 05:18:51] gmoolman at realpeople dot co dot za Good afternoon We are running Win2000 Server, IIS5, PHP and the same irretating "CGI App Misbehaved" error occurs. We have tried all above suggestions posted and still no joy. Anyone ? ------------------------------------------------------------------------ [2003-09-15 16:40:08] bobberz03 at hotmail dot com Was pulling my hair out with this!! Installing ISAPI module did it for me, none of the other fixes worked (did NOT try slowing anything down to get it working or messed with Background/foreground settings as this defeats the object..and some time in the future will reoccur neway!! I have created other appz using the CGI interpretor but havent tested them with the ISAPI module as yet, this is the first app I'm creating using MSSQL2000. I know its been stated above that it is IIS but I have never had this problem b4 until switching to MSSQL2000 (previously MySQL). Cheers for all the help chaps. BoB ------------------------------------------------------------------------ [2003-08-29 14:19:44] kb3777 at hotmail dot com I have the same problem with IIS 5 WIN 2k running Perl. The javascript redirect works for me most times. What is the real fix/problem? Does anyone know? I've heard Timing, IIS, Perl? ------------------------------------------------------------------------ [2003-08-10 05:41:25] rio at x-tra dot nl The problem is caused in my case by using mail() in PHP. In one request do I use mssql*, mail functions and than redirect (header('location: ...')). Without using mail() all works fine. But when I use mail() I get "CGI Error" in 95% requests. Pedro's cgi.rfc2616_headers = 1 tip did not work in my case. 'Forground Applications' does "solve" the problem. Mail server is local (standard) MS SMTP Service. My conf is W2k / IIS 5.0 / PHP 4.3.2 / MSSQL 2k. ------------------------------------------------------------------------ [2003-06-11 09:52:20] wharrison at pro dot ie To follow up I set cgi.rfc2616_headers = 1 as Pedro suggested and have had no problems reported since. So I suggest trying this to anyone with these problems. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/9852 -- Edit this bug report at http://bugs.php.net/?id=9852&edit=1