We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4966
    • 143 Posts
    Help! I’m moving a development site to a production server (not my server but user’s server) and I’m receiving the following error:

    CGI Error

    The specified CGI application misbehaved by not returning a complete set of HTTP headers.

    http://www.expressions3.com/index.php

    I did run a few test php scripts to make sure that I had everything that I needed and they checked out. This is a IIS 6 server.
      • 6726
      • 7,075 Posts
      It would seem to me that you have some CGI app that you didn’t move along the way... I am not competent on anything IIS but how does that relate to MODx ?


      Edit : Did a quick Google search and came accross a PHP bug on IIS
      http://bugs.php.net/bug.php?id=25863

      Problem Statement
      -----------------
      When browsing a php application, the IIS server randomly throws the
      error message:

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

      Observations
      ------------
      This happened only when:
      - PHP.exe is used as a CGI on IIS
      - The php scripts contained 2 or more frames (e.g. phpMyAdmin)
      - MySQL operation was executed (update, insert, delete etc.)
      - header("Location: ...") is used to redirect user after a MySQL
      operation to a page that also performs a MySQL operation
      - The pages are viewed from local computer
      - A very fast computer is used

      This did not happened when:
      - Apache server for windows with php support was used
      - The php scripts contained 2 or more frames but all frames contained
      php scripts with Hello World and a random number
      - Frequency of errors was much lesser when same pages were accessed from
      the network
      - Pentium 2, 300 MHz was used (a slow computer)

      Maybe this will help...
      Is php.exe used as CGI on your server ?


      2nd Edit :

      I checked your http headers, here is what I do get :

      Content-Length: 232
      Content-Type: text/html
      Server: Microsoft-IIS/6.0
      X-Powered-By: ASP.NET
      MicrosoftOfficeWebServer: 5.0_Pub
      Date: Mon, 05 Nov 2007 17:04:19 GMT
      
      502 Bad Gateway


      Here is some reading about 502 errors :
      http://www.checkupdown.com/status/E502.html
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
        • 4966
        • 143 Posts
        Thanks for the help. I guess getting MODx to run on the server just led me to think that I could post to the forum.
        • Charlie, most of us are not familiar with Windows/IIS. You might want to ask this in the forum set aside for IIS discussion
          http://modxcms.com/forums/index.php/board,220.0.html

          David, as far as I know with IIS php can only be a cgi application. It doesn’t have a mod_php function like Apache does.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org