473,320 Members | 1,799 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,320 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 3587
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.