[mapserver-users] WEB parameters in mapfile being ignored
P.Romero
romero619 at hotmail.com
Thu Apr 23 13:53:59 PDT 2009
The parameters I was referring to *are*, in fact, those in my mapfile.
My mapfile contains this:
WEB
LOG "/data/www/html/dev/mslog"
IMAGEPATH "/data/www/html/images/mapserver/tmp/"
IMAGEURL "/images/mapserver/tmp/"
END
(I made sure that permissions for these directories are writable by apache).
But my 'map.php' file is here:
/data/www/html/dev
So, calling '$image->saveWebImage()' causes the resulting .gif file to be
placed in '/data/www/html/dev' instead of the path listed in my mapfile.
Any idea why this could be happening?
P.R.
-----Original Message-----
From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us]
Sent: 2009-04-23 3:39 PM
To: P.Romero; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] WEB parameters in mapfile being ignored
They're ignored for security reasons. It's simply not a good idea to allow
an outside user to change where files are being written. They were only ever
changeable for the sake of convenience when configuring a demo- not a good
reason.
Fix is easy, just edit your mapfile and set IMAGEPATH and IMAGEURL
appropriately in the WEB section.
Steve
>>> On 4/23/2009 at 3:18 PM, in message
<BAY117-DS87A6B2BB872A2FD00E094F9750 at phx.gbl>, "P.Romero"
<romero619 at hotmail.com> wrote:
> I just compiled/installed the 5.4.0 versions of mapserver & mapscript.
>
> Im loading a mapfile from php, drawing & saving the image using
> '$image->saveWebImage()'.
>
> However, the WEB parameters for IMAGEPATH & IMAGEURL in my mapfile are
> being ignored.
> The file is being saved in the same directory as the php file that has
> the mapscript being called to draw the map.
> Even the LOG parameter is being ignored.
>
> How can I debug & find out why my WEB parameters are being ignored?
>
> Please help,
> Thanks,
> P.Romero
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list