473,383 Members | 1,963 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

WIN2k+IIS5+CGI+ERROR

Hello Everyone.

I recently downloaded the PHP 4.3.2, I ran the installer, and did everything
accordingly, setting IIS4 or higher, all the right things ( I think ).
PHP is enabled as far as I know in IIS5 on all of my websites, but when ever
I try to load a php file from the web I get this exact error message.

"
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:

"

Nothing returns after that either.
My file is called phpinfo.php. Although I can do a 4363473568546trgdfsh.php,
which does not even exists on our server, and the same error gets spit out.

I have looked on google, but I cannot figure this one out.
Could someone PLEASE help me solve this. As I am getting sick to death of
using ASP.

Thanks!
Jul 16 '05 #1
3 3592
Adam wrote:
Hello Everyone.

I recently downloaded the PHP 4.3.2, I ran the installer, and did everything
accordingly, setting IIS4 or higher, all the right things ( I think ).
PHP is enabled as far as I know in IIS5 on all of my websites, but when ever
I try to load a php file from the web I get this exact error message.

"
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:

"

Nothing returns after that either.
My file is called phpinfo.php. Although I can do a 4363473568546trgdfsh.php,
which does not even exists on our server, and the same error gets spit out.
Prolly a permissions error. Take a look at the install.txt file you get
with PHP. There's some stuff there to try.
I have looked on google, but I cannot figure this one out.
Could someone PLEASE help me solve this. As I am getting sick to death of
using ASP.

Thanks!


--
MeerKat

Jul 16 '05 #2
Ok, everything is working now except when I try to perform a
header("Location : /path/file.php");

it produces that error.
Any new suggestions, everything PHP wise is working though, even got it
connecting to a msSQL database server.
Thanks guys!!

"Tom Thackrey" <to***@creative-light.com> wrote in message
news:O1****************@newssvr27.news.prodigy.com ...

On 25-Aug-2003, "Adam" <ad*****@sharklogic.com> wrote:
I recently downloaded the PHP 4.3.2, I ran the installer, and did
everything
accordingly, setting IIS4 or higher, all the right things ( I think ).
PHP is enabled as far as I know in IIS5 on all of my websites, but when
ever
I try to load a php file from the web I get this exact error message.

"
CGI Error
The specified CGI application misbehaved by not returning a complete set
of
HTTP headers. The headers it did return are:

"

Nothing returns after that either.
My file is called phpinfo.php. Although I can do a
4363473568546trgdfsh.php,
which does not even exists on our server, and the same error gets spit
out.

I have looked on google, but I cannot figure this one out.
Could someone PLEASE help me solve this. As I am getting sick to death of using ASP.

1) Try a .htm file from the same directory (to ensure you are actually
getting to that directory)
2) Verify your php file works on some other server. Or use a known good

..php file like:
<?php
phpinfo();
?>

--
Tom Thackrey
www.creative-light.com

Jul 16 '05 #3
Adam wrote:
Ok, everything is working now except when I try to perform a
header("Location : /path/file.php");

it produces that error.


That'll be the space after Location and before the colon. Incidentally,
the URL in a Location header should be the full URL:
header("Location: http://www.server.com/path/file.php");

--
MeerKat

Jul 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: neur0maniak | last post by:
Hi, I've been eager to try out PHP5, so I've dumped it on my little dev machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the "mappings" page as I'm used to doing with PHP4....
3
by: Harry Hudini | last post by:
Hi, I have an asp page that needs to display the string that is returned from a cgi file. As an example, if you enter http://mydomain.com/mycgi.cgi?98127398 in to a browser, it will display...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.