For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > September 2005 > Specified CGI Application Misbehaved









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Specified CGI Application Misbehaved
Mac Rinehart

2005-09-06, 6:57 pm

I'm trying to configure a new install of PHP 5.0.4 on a Windows 2003 server
using the IIS 6.0 webserver. When I run the <?php phpinfo(); ?> script I get
the following error:

CGI Error

The specified CGI application misbehaved by not returning a complete set of
HTTP headers.

I have performed the following tests:

1) Verified that the following web service extensions are allowed in IIS:
php.exe, php5isapi.dll, php5ts.dll, php-cgi.exe, php-win.exe
2) Created virtual directory with web application test code and html:
http://localhost/support/test.php
3) Verify that virtual directory has read and execute permissions for
scripts and executables.
4) Enable default content page of "index.php"
5) Under default website -> Home Directory -> Application Configuration
created .php extension with execution path of "C:\php\php-cgi.exe" and allow
"All" Verbs.
6) Verify that Internet Guest Account (<srvname>\IIS_<srvname> ) and IIS
security group (<srvname>\IIS_WPG) both have read and execute permissions on
"C:\php" and "C:\php\php-cgi.exe".
7) Added "C:\php" to system path variable.
8) Added "header("Content-Type: text/HTML");" to script as suggested in
thread "php5 on IIS6 (CGI Error)".
9) Successfully executed "php -i" from command prompt on server with no
error messages returned.

I'm still having the same trouble. Any additional recommendations or help
greatly appriciated.

Thanks,

Mac
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com