Mapserver returns blank pages
Umberto Nicoletti
umberto.nicoletti at GMAIL.COM
Thu Jul 20 00:51:39 PDT 2006
I presume you are running php as shared module, right?
If so recompile with this configure flag: --with-threads and then make
sure you read the thread safety FAQ:
http://mapserver.gis.umn.edu/docs/faq/thread_safety
If you plan to use unsafe components (like cartoline symbols) switch
php to cgi mode (and then you can avoid using the --with-threads
option).
HTH,
Umberto
On 7/20/06, antti siukola <siukola.antti at gmail.com> wrote:
> Hello!
>
> Production:
> Redhat AS4 Upd 3
> Mysql 5.0.21
> Apache 2.2.2 with mod_php
> Mapserver 4.8.3
> PHP 5.14
> Gdal 1.3.2
>
> Development:
> Ubuntu breezy
> MySQL 5.0.18
> Apache 2.0.55 with mod_php
> MapServer 4.8.4
> PHP PHP 5.0.5-2ubuntu1.2
> Gdal 1.3.2
>
> MapServer configure:
> --with-ogr --with-gdal --with-tiff --with-gd --with-jpeg
> --with-php=/usr/include/php5/ --with-odbc --with-httpd --with-proj
>
> It doesn't matter which on of the servers it is the problems are the same.
>
> And here is a sample of one of the map files:
>
> MAP
> NAME "name"
> FONTSET fontset.txt
> STATUS ON
> EXTENT 34083.890 75139.631 40587.098 79917.784
> SIZE 500 367
> SYMBOLSET ../etc/symbols.sym
> UNITS METERS
> IMAGECOLOR 240 240 240
> WEB
> LOG "/mapserver.log"
> IMAGEPATH "/tmp/ms_tmp/"
> IMAGEURL "/ms_tmp/"
> MINSCALE 3000
> MAXSCALE 50000
> END # WEB ends
>
> IMAGETYPE JPEG
>
> OUTPUTFORMAT
> NAME png
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> IMAGEMODE PC256
> EXTENSION "png"
> END
> OUTPUTFORMAT
> NAME png24
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> IMAGEMODE RGBA
> EXTENSION "png"
> END
> OUTPUTFORMAT
> NAME jpeg
> DRIVER "GD/JPEG"
> FORMATOPTION "QUALITY=87"
> MIMETYPE "image/jpeg"
> IMAGEMODE RGB
> EXTENSION "jpg"
> END
> OUTPUTFORMAT
> NAME GTiff
> DRIVER "GDAL/GTiff"
> MIMETYPE "image/tiff"
> IMAGEMODE RGB
> EXTENSION "tif"
> END
>
> #
> # Start of legend
> #
> LEGEND
> KEYSIZE 18 12
> LABEL
> TYPE BITMAP
> SIZE MEDIUM
> COLOR 0 0 89
> END
> STATUS ON
> END
>
> #
> # Start of scalebar
> #
> SCALEBAR
> IMAGECOLOR 255 255 255
> LABEL
> COLOR 0 0 0
> SIZE SMALL
> END
> SIZE 300 5
> COLOR 19 100 133
> BACKGROUNDCOLOR 71 153 71
> UNITS meters
> INTERVALS 5
> STATUS ON
> END
>
> QUERYMAP
> STYLE HILITE
> COLOR 255 240 0
> END
>
>
>
> LAYER
> NAME "name"
> DATA "data/raster/image.tif"
> TYPE RASTER
> STATUS OFF
> END #LAYER
>
>
> LAYER
> NAME name
> TYPE POLYGON
> DATA /url/to/shp/shp
> STATUS OFF
> CLASS
> NAME "name"
> COLOR 255 255 255
> END
> END # Layer shapefile ends
>
>
> LAYER
> NAME name
> TYPE POLYGON
> STATUS OFF
> CONNECTIONTYPE OGR
> CONNECTION "/url/to/tab.TAB"
> LABELITEM "name"
> # STYLEITEM "AUTO"
> CLASS
> NAME "name"
> COLOR 216 176 255
> LABEL
> TYPE TRUETYPE
> ANTIALIAS TRUE
> FONT FreeSans
> COLOR 0 0 0
> OUTLINECOLOR 220 220 220
> SIZE 8
> OFFSET 0 2
> buffer 2
> END #label
> END
> END # Layer ends
>
> LAYER
> NAME name
> TYPE LINE
> STATUS OFF
> CONNECTIONTYPE OGR
> CONNECTION "/url/to/tab.TAB"
> LABELITEM "text"
> CLASS
> NAME "name"
> LABEL
> TYPE TRUETYPE
> ANTIALIAS TRUE
> FONT FreeSans
> COLOR 255 255 255
> OUTLINECOLOR 0 0 0
> SIZE 10
> ANGLE AUTO
> POSITION UC
> OFFSET 0 2
> buffer 2
> END #label
> END #class
> END # Layer test ends
>
>
> LAYER
> NAME name
> TYPE LINE
> STATUS OFF
> CONNECTIONTYPE OGR
> CONNECTION "/url/to/tab.TAB"
> STYLEITEM "AUTO"
> CLASS
> NAME "name"
> END
> END # Layer ends
>
>
> END # MAP ends
>
> Cheers!
>
> On 7/20/06, Umberto Nicoletti <umberto.nicoletti at gmail.com> wrote:
> > Antti,
> > please tell us more:
> >
> > - version of mapserver
> > - how you built it (yourself or picked one from where)
> > - if you built it yourself the configure flags you used
> > - are you using php as a shared module or as a cgi?
> > - version of apache, php and linux (uname -a)
> >
> > Can you post the map file to the list?
> >
> > Regards,
> > Umberto
> >
> > On 6/13/06, antti siukola <siukola.antti at gmail.com> wrote:
> > > Hi!
> > >
> > > Every time MapServer returns a blank page I find "[notice] child pid
> > > xxxx exit signal Segmentation fault (11)" from apache's error_log. Any
> > > thoughts? Blank pages are returned randomly.
> > >
> > > AnttiS
> > >
> >
>
More information about the MapServer-users
mailing list