mapserver-4.0.1 version source code documentation

Daniel Morissette dmorissette at DMSOLUTIONS.CA
Tue Apr 19 10:46:29 EDT 2005


Akio Neuchi wrote:
> Hello,
>
> I reported CGI interface trouble yesterday, as following:
>
> ----------------------------------------------------
> The following message came from MapServer when a client was sending bunch of
> node parametres by POST on the script.
>
> ...trying to POST /cgi-bin/mapserv, cgi_scan_headers
>  reports: HTTP4044: the CGI program
> /var/opt/SUNWappserver7/domains/domain1/server1/cgi-bin/mapserv
> did not produce a valid header (program terminated without a valid CGI
> header.
> Check for core dump or other abnormal termination)
> -----------------------------------------------
>
> But now I am not sure whether the cause was at the phase of input or output.
> Has anyone experienced the same problem?

No, I have never seen this before. Does the mapserv CGI work fine with
GET requests? Maybe the mapserv binary crashes while processing the
request and the error message from the web server is just misleading you.

I would suggest that you try to test with GET first to make sure the
rest of your build is right, and if it fails only on POST requests, then
at least you'll know where to look.

BTW, are you using MapServer 4.4 or an older version?


> And how can I get MapServer Error logs?
>

Configure with --enable-debug, and set DEBUG TRUE at the top-level of
your mapfile and in every layer, this will give you the maximum amount
of debugging info. The debug output in this case goes to the stderr
which should be your web server's error_log.

Daniel
--
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the mapserver-dev mailing list