Link to home
Start Free TrialLog in
Avatar of hob63
hob63

asked on

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?


Regards,

Jason
Avatar of hob63
hob63

ASKER

**EDIT**

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??)
ASKER CERTIFIED SOLUTION
Avatar of Richard Quadling
Richard Quadling
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hob63

ASKER

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?
You can ask them or navigate to the pages they use using your browser.