[mapserver-users] 3.6.3 Compile problems/errors

Steven Bowden steveb at bundaberg.qld.gov.au
Wed Oct 9 16:16:40 PDT 2002


Daniel,
I have got IMAGEPATH and IMAGETMP set in the map file.  Here is the
extract from my map file
WEB
  LOG /var/www/html/blis/blis.log
  IMAGEPATH "/var/www/html/tmp/"
  IMAGEURL "/tmp/"
  METADATA
    WMS_TITLE "BLIS"
    WMS_ABSTRACT "This is the BLIS (Bundaberg Land Information System)."
    WMS_ACCESSCONSTRAINTS none
  END
END

I changed the working path (/var/www/html/blis) to writable and it then
saved the tmp images to this directory even though IMAGEPATH was was set
to /var/www/html/tmp/ in the map file.

Any thoughts?
Steve

On Thu, 2002-10-10 at 02:05, Daniel Morissette wrote:

    Nothing has changed between 3.6.2 and 3.6.3 that would explain this.
    
    I see that the path to the temporary png file in the error message is
    not absolute which means that MapScript is trying to write the temp png
    file to the current working directory.  So perhaps you get this error
    because the working directory of your script (var/www/html/blis/ ?) is
    read-only.  I would suggest that you make sure that your IMAGEPATH is
    set in your mapfile and uses an absolute path to the location of your
    temporary images directory and that this directory is writable by the
    web user.
    
    Daniel
    
    
    > Steven Bowden wrote:
    > 
    > Hi List,
    > I just tried to upgrade to 3.6.3 and received the following error when
    > I tried to access my application:
    > 
    > Warning: MapServer Error in msSaveImage(): (1034121816212081.png) in
    > /var/www/html/blis/blis.phpm on line 217
    > 
    > Fatal error: Failed writing image to 1034121816212081.png in
    > /var/www/html/blis/blis.phpm on line 217
    > 
    > The relevant code from my php mapscript is
    > $image=$map->draw();
    > $image_url=$image->saveWebImage($config[image_type],1,1,$config[image_quality]);
    > 
    > The mapserver configuration options that I used to compile this
    > version were exactly the same as the ones that I used to compile 3.6.2
    > which works without any problem.  Here are the options that I used:
    > ./configure --with-proj --with-wmsclient --with-libwww --with-gdal
    > --enable-runpath --with-php=../php-4.1.2 --without-tif --with-gd
    > --with-postgis --with-freetype=/usr/include --enable-force-freetype1
    > 
    > I am running mapserver on RedHat 7.3  and using php 4.1.2.
    > Anyone got any hints on what the problem could be?
    > I think it is something to do with the php_mapscript.so because I
    > reverted back to the php_mapscript.so compiled with 3.6.2 and the
    > mapserv 3.6.3 cgi and it doesn't produce the error.
    > 
    > Regards
    > Steve
    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20021010/80789430/attachment.htm>


More information about the MapServer-users mailing list