CGI Error

Posted on 2006-05-23
Last Modified: 2013-12-13
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?


Question by:hob63

    Author Comment


    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??)
    LVL 40

    Accepted Solution

    Do you need both to run with IIS? Can you upgrade to PHP5?

    I would recommend reading the installation notes for PHP4 with IIS.

    Author Comment

    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?
    LVL 40

    Expert Comment

    You can ask them or navigate to the pages they use using your browser.

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Suggested Solutions

    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now