[mapserver-users] mapserver files to subdomain results in '500Internal Server Error' when mapserv executable accessed through url

Steve Lime Steve.Lime at dnr.state.mn.us
Mon Sep 21 15:16:33 EDT 2009


Typically I would think this is a linking error. That is, the mapserv binary can't find the shared
libs it needs to run. You probably need to configure apache further. There's a LD_LIBRARY_PATH
env variable that you can look into setting.

Steve

>>> On 9/21/2009 at 2:03 PM, in message <1253559809841-3687559.post at n2.nabble.com>,
Ted Spradley <tspradley at snoogems.com> wrote:

> Hi all,
> 
> I decided it would be a good idea to move all of my mapping activity to a
> subdomain: maps.subdomain.com
> 
> Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the result
> is '500 Internal Server Error'.
> 
> Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result
> is the expected 'No query information to decode. QUERY_STRING is set, but
> empty. '.
> 
> access_log shows the two requests converted to the same GET:
> 
> 1. 'http://domain.com/cgi-bin/mapserv' -
> 
> [21/Sep/2009:12:40:12 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 200 249 "-"
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824
> Firefox/3.5.3 (.NET CLR 3.5.30729)"
> 
> 2. 'http://maps.domain.com/cgi-bin/mapserv' - 
> [21/Sep/2009:12:40:20 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 500 1549 "-"
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824
> Firefox/3.5.3 (.NET CLR 3.5.30729)"
> 
> One gets code 200, Two gets code 500.
> 
> error_log shows:
> [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end of
> script headers: mapserv
> 
> 
> mapserv -v
> MapServer version 5.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7
> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> 
> MapServer is now configured for
> 
>  -------------- Compiler Info -------------
>   C compiler:                gcc -O2 -fPIC -Wall
>   C++ compiler:              g++ -O2 -fPIC -Wall
>   Debug:                      -DNEED_NONBLOCKING_STDERR
>   Generic NINT:
> 
>  -------------- Renderer Settings ---------
>   zlib support:              -DUSE_ZLIB
>   png support:
>   palette rgba png support:
>   jpeg support:
>   iconv support:             -DUSE_ICONV
>   AGG support:
>   AGG Freetype support:
>   Ming(flash) support:
>   PDFLib support:
> 
>  -------------- Support Libraries ---------
>   Proj.4 support:            -DUSE_PROJ
>   Libxml2 support:           -DUSE_LIBXML2
>   FriBidi support:
>   Curl support:              -DUSE_CURL
>   FastCGI support:
>   Threading support:         -DUSE_THREAD
>   GEOS support:
> 
>  -------------- Data Format Drivers -------
>   native tiff support:
>   PostGIS support:           -DUSE_POSTGIS
>   EPPL7 support:             -DUSE_EPPL
>   ArcSDE support:
>   OGR support:               -DUSE_OGR
>   GDAL support:              -DUSE_GDAL
>   Oracle Spatial support:
> 
>  -------------- OGC Services --------------
>   WMS Server:                -DUSE_WMS_SVR
>   WMS Client:                -DUSE_WMS_LYR
>   WFS Server:                -DUSE_WFS_SVR
>   WFS Client:                -DUSE_WMS_LYR
>   WCS Server:                -DUSE_WCS_SVR
>   SOS Server:
> 
>  -------------- MapScript -----------------
>   PHP MapScript:             yes
> 
> 
> Installation: Fedora 7, Linux Apache/2.2.8
> 
> Does anyone have any thoughts about where I may start looking for clues?
> 
> Thank you,
> Ted S.



More information about the mapserver-users mailing list