[Mapserver-users] CGI returns malformed headers
Brantley Hobbs
bhobbs at itos.uga.edu
Sat Mar 8 05:09:13 PST 2003
Doh! You're absolutely right! I had been setting the path for my own login, and not for IUSR_*.
I'm glad to know that my first reaction was right. The only thing that I could think is that one of those libraries used a relative path to get to a system DLL, and couldn't find it unless it were in the same directory.
I'll try that first thing on Monday...
Thanks!
B.
-----Original Message-----
From: Ed McNierney [mailto:ed at topozone.com]
Sent: Fri 3/7/2003 10:36 PM
To: Brantley Hobbs; Martin, Daniel; mapserver-users at lists.gis.umn.edu
Cc:
Subject: RE: [Mapserver-users] CGI returns malformed headers
No, DLLs are NOT required to be in the System32 directory. They can be
anywhere on the path, or in the same directory as the executable that's
loading them. Since the System32 directory is always on the path,
putting them there will fix the problem, but they are by no means
required to be there. Search your computer for "*.DLL" and you'll find
them all over the place.
Running "mapserv -v" executes very little code inside MapServer.
Therefore, any load-on-demand DLLs won't be loaded because they're never
needed. That's one reason why running mapserv -v works and running it
as a CGI program doesn't.
You also probably added the MapServer directory to YOUR path - that is,
the path used by your personal user login. But a CGI program runs in
the user context configured in your Web server, and that is probably NOT
your personal account.
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
Phone: (978) 251-4242 Fax: (978) 251-1396
ed at topozone.com
-----Original Message-----
From: Brantley Hobbs [mailto:bhobbs at itos.uga.edu]
Sent: Friday, March 07, 2003 5:37 PM
To: Martin, Daniel; mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] CGI returns malformed headers
Yep, they're required to be in system32.
Works fine now.
I wonder how big the exe would be if those were statically
compiled......
Thanks all,
Brantley
> -----Original Message-----
> From: Martin, Daniel [mailto:DMartin at erac.com]
> Sent: Friday, March 07, 2003 5:29 PM
> To: Brantley Hobbs; mapserver-users at lists.gis.umn.edu
> Subject: RE: [Mapserver-users] CGI returns malformed headers
>
>
> AFAIK putting dll libraries in the path on Windows isn't
> enough. I believe they must be in C:\WINNT\System32. But,
> if you prove me wrong I'd love to know about it.
>
> -Dan
>
>
> > -----Original Message-----
> > From: Brantley Hobbs [mailto:bhobbs at itos.uga.edu]
> > Sent: Friday, March 07, 2003 4:13 PM
> > To: Martin, Daniel; mapserver-users at lists.gis.umn.edu
> > Subject: RE: [Mapserver-users] CGI returns malformed headers
> >
> >
> > Well, one thing that I did differently between my
> workstation and the
> > development server was to place those libraries in their
> own directory
> > and just add it to the path. This worked well enough for the
> > mapserver.exe -v command to work properly, so I assumed
> that this was
> > OK. I'm just a little suspicious of dropping a bunch of unknown
> > libraries into system32.
> >
> > When I tried to copy them over, it complained that
> xmlparse.dll was in
> > use when it tried to copy over it.
> >
> > Anyway, I'll sort that out and reply back when I know
> something. I'll
> > have to reboot in order to free up the original
> xmlparse.dll so that I
> > can overwrite it. <sigh> Windows is such a pain.
> >
> > B.
> >
> > > -----Original Message-----
> > > From: Martin, Daniel [mailto:DMartin at erac.com]
> > > Sent: Friday, March 07, 2003 5:09 PM
> > > To: Brantley Hobbs; mapserver-users at lists.gis.umn.edu
> > > Subject: RE: [Mapserver-users] CGI returns malformed headers
> > >
> > >
> > > Usually this is caused by problems with the libraries that
> > > should be installed into C:\WINNT\SYSTEM32. Either:
> > > A) You didn't install the libraries.
> > > B) You have an older version of the libraries than your
> build needs.
> > > C) You installed libwww_dll.zip when you actually needed
> > > ms35_libs.dll.
> > >
> > > Go to http://mapserver.gis.umn.edu/win32binaries.html, find
> > > the build you chose, and download the appropriate library.
> > > Extract into C:\Winnt\SYSTEM32 and chose YES if it asks to
> > overwrite.
> > >
> > > Hope that helps,
> > > -Dan Martin
> > >
> > > > -----Original Message-----
> > > > From: Brantley Hobbs [mailto:bhobbs at itos.uga.edu]
> > > > Sent: Friday, March 07, 2003 3:43 PM
> > > > To: mapserver-users at lists.gis.umn.edu
> > > > Subject: [Mapserver-users] CGI returns malformed headers
> > > >
> > > >
> > > > All,
> > > >
> > > > I'm new to the mapserver app and I've run into a
> problem I can't
> > > > seem to figure out.
> > > >
> > > > On my personal workstation, I'm able to run the demo app
> > just fine.
> > > > When I moved the app to our development server for more
> > > general use, I
> > > > find that the webserver is now reporting that the CGI isn't
> > > returning
> > > > a complete set of headers. I've tried the CGI with both
> > Apache and
> > > > IIS, with the same results. I know that the demo app works,
> > > > because I set up the directory structure on my
> workstation to be
> > > > identical to the directory structure on the server and
> everything
> > > > works fine there.
> > > >
> > > > I have verified that the server (both Apache and IIS) has
> > > write access
> > > > to the image output directory.
> > > >
> > > > Here is a mapserver.exe -v output:
> > C:\Inetpub\scripts>mapserv.exe -v
> > > > MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> > > OUTPUT=WBMP
> > > > SUPPORTS=P
> > > > ROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> > INPUT=TIFF
> > > > INPUT=EPPL7
> > > > INPUT=JPEG INPUT=OGR INPUT=SHAPEFILE
> > > >
> > > > I have also tried to add a line to the .map file to have
> > > some sort of
> > > > logging mechanism, but the CGI isn't even creating the log.
> > > >
> > > > Can someone give me some pointers here?
> > > >
> > > > Thanks,
> > > > Brantley Hobbs
> > > >
> > > > _______________________________________________
> > > > Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > >
> > >
> >
>
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list