• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

CGI Error

Hello people,

Some of my users get the following problems on my website: ""CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers."

Now I think the problem is as follows....

For some reason there are two installs of PHP, one install I think was allready there and one was done by plesk,

1 is on the C:/
1 is on the D:/

all IIS etc is on the D:/ all paths etc

in IIS their is an extension *I think* is casuing the problem, its located as: c:/PHP/php-cgi.exe however all my web stuff is @
D:\Program Files\SWsoft\Plesk\Additional\Php\ however that dir does not contain a php-cgi.exe

however c:/PHP/php-cgi.exe has the executable, however double clicking the .exe yields: "the application failed to start because php4ts.dll was not found..... Moving php-cgi.exe to the D:\Program Files\SWsoft\Plesk\Additional\Php
Dir yields:

Module complied with API=20020429, debug=0,thread-saftey=1
PHP compield with API=20020412, debug=0,thread-saftey=1
These options need to match,

So it sounds like the php-cgi.exe could be causing the problems, is this true, and if so what do I need to do?


  • 2
  • 2
1 Solution
hob63Author Commented:

Found out one installation is php 5  (C:/) and one is php 4 (D:/) {plesk}

So in order to fix this do I just specify in IIS the cgi bit as just php.exe (under PHP4??)
Richard QuadlingSenior Software DeverloperCommented:
Do you need both to run with IIS? Can you upgrade to PHP5?

I would recommend reading the installation notes for PHP4 with IIS. http://www.php.net/manual/en/install.windows.iis.php
hob63Author Commented:
Hi the situation I belive was that PHP5 was allready installed (on C:/) however the auto-installer in plesk installed PHP4, is there any reason to upgrade to PHP5? and have I solved the problem? is there a way I can check to see if my users are still getting the error?
Richard QuadlingSenior Software DeverloperCommented:
You can ask them or navigate to the pages they use using your browser.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now