WIN2k+IIS5+CGI+ERROR

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam

    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 4363473568546tr gdfsh.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!


  • MeerKat

    #2
    Re: WIN2k+IIS5+CGI+ ERROR

    Adam wrote:
    [color=blue]
    > 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 4363473568546tr gdfsh.php,
    > which does not even exists on our server, and the same error gets spit out.[/color]

    Prolly a permissions error. Take a look at the install.txt file you get
    with PHP. There's some stuff there to try.
    [color=blue]
    > 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!
    >
    >[/color]

    --
    MeerKat

    Comment

    • Adam

      #3
      Re: WIN2k+IIS5+CGI+ ERROR

      Ok, everything is working now except when I try to perform a
      header("Locatio n : /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" <tomnr@creati ve-light.com> wrote in message
      news:O1r2b.6347 $J63.153@newssv r27.news.prodig y.com...[color=blue]
      >
      > On 25-Aug-2003, "Adam" <adoeler@sharkl ogic.com> wrote:
      >[color=green]
      > > 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
      > > 4363473568546tr gdfsh.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[/color][/color]
      of[color=blue][color=green]
      > > using ASP.
      > >[/color]
      >
      > 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[/color]
      ..php[color=blue]
      > file like:
      > <?php
      > phpinfo();
      > ?>
      >
      > --
      > Tom Thackrey
      > www.creative-light.com[/color]


      Comment

      • MeerKat

        #4
        Re: WIN2k+IIS5+CGI+ ERROR

        Adam wrote:
        [color=blue]
        > Ok, everything is working now except when I try to perform a
        > header("Locatio n : /path/file.php");
        >
        > it produces that error.[/color]

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

        --
        MeerKat

        Comment

        Working...