<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.2">
</HEAD>
<BODY>
Daniel,
<BR>
I have got IMAGEPATH and IMAGETMP set in the map file.&nbsp; Here is the extract from my map file
<BR>
WEB
<BR>
&nbsp; LOG /var/www/html/blis/blis.log
<BR>
&nbsp; IMAGEPATH &quot;/var/www/html/tmp/&quot;
<BR>
&nbsp; IMAGEURL &quot;/tmp/&quot;
<BR>
&nbsp; METADATA
<BR>
&nbsp;&nbsp;&nbsp; WMS_TITLE &quot;BLIS&quot;
<BR>
&nbsp;&nbsp;&nbsp; WMS_ABSTRACT &quot;This is the BLIS (Bundaberg Land Information System).&quot;
<BR>
&nbsp;&nbsp;&nbsp; WMS_ACCESSCONSTRAINTS none
<BR>
&nbsp; END
<BR>
END
<BR>

<BR>
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.
<BR>

<BR>
Any thoughts?
<BR>
Steve
<BR>

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