Re: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing)

2009-01-26 Thread Jeff McKenna

Amiya Patra wrote:

Hi,

Thanks for reply. I tried all those steps found at the URL which you 
sent. But, still it's not working. The same file works fine in Linux. I 
got the following error:


*Warning*: [MapServer Error]: msSaveImageGD(): Unable to open file 
./../temp/363403.gif for writing in *C:\ms4w\Apache\htdocs\data\xy.php* 
on line *578*


*Fatal error*: Failed writing image to ./../temp/363403.gif in 
*C:\ms4w\Apache\htdocs\data\xy.php* on line *578


*Please, help me regarding this.

Thanks.

Regards,
Amiya.


Note that MS4W is pre-configured for the following settings:

  IMAGEPATH /ms4w/tmp/ms_tmp/
  IMAGEURL /ms_tmp/

I recommend following the structure of an existing MS4W add-on package 
(such as the PHP/MapScript Sample Application) and look at its 
mapfiles to see how they are working.


-jeff



--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing)

2009-01-25 Thread Jérôme Martin
Hi, when i see your error, I immediatly think you have a problem access
for temp file creation, because maybe you don't have a valid ./../temp/
folder.


So i suggest your add to your mapfile this :


IMAGEPATH c:\temp\


or whatever folder where you are sure the access is not restricted for
anyone.


Personally I were on Linux when i worked on mapserver, but this option
was really important when you are in embedded system, because you don't
have to access on the system, which is mapped on special memory card (no
harddrive). So we had to write on a different memory card which support
many write access by mounting it on a special folder, which were used
with the IMAGEPATH option.


regards,


Jérôme Martin


Amiya Patra a écrit :

 Hi,

 Thanks for reply. I tried all those steps found at the URL which you
 sent. But, still it's not working. The same file works fine in Linux.
 I got the following error:

 *Warning*: [MapServer Error]: msSaveImageGD(): Unable to open file
 ./../temp/363403.gif for writing in
 *C:\ms4w\Apache\htdocs\data\xy.php* on line *578*

 *Fatal error*: Failed writing image to ./../temp/363403.gif in
 *C:\ms4w\Apache\htdocs\data\xy.php* on line *578

 *Please, help me regarding this.

 Thanks.

 Regards,
 Amiya.


 On Mon, Jan 19, 2009 at 7:49 PM, Alan Boudreault
 aboudrea...@mapgears.com mailto:aboudrea...@mapgears.com wrote:

 Try this:
 
 http://www.mydigitallife.info/2007/05/25/how-to-take-ownership-and-grant-permissions-in-windows-vista/

 Alan


 Amiya Patra wrote:
  hi
  Thanks 4 reply.but already I have tried that  but no result.
 Actually
  I want to know  how to change the ownership of that folder...I
 have to
  change the ownership to apache user and then needs to give
  permission..
 
  On Mon, Jan 19, 2009 at 7:27 PM, muzaffar hussain
  mhd.muzaf...@gmail.com mailto:mhd.muzaf...@gmail.com
 mailto:mhd.muzaf...@gmail.com mailto:mhd.muzaf...@gmail.com
 wrote:
 
  hi
 
  right click on the folder,then select the property and
 change the
  read and write option to its folder and to its sub folder.
 
  regards
  muzaffar
 
  On Mon, Jan 19, 2009 at 7:12 PM, Amiya Patra
  amiyapatra...@gmail.com mailto:amiyapatra...@gmail.com
 mailto:amiyapatra...@gmail.com mailto:amiyapatra...@gmail.com
 wrote:
 
  Hi
  I got the error but unable to solve.The apache user don have
  permision to write to that folder .In windows how I will
 check
  wheather apache user can write to that folder. Actually in
  linux my application is running ok. but in windows vista, I
  cant find the daemon apache user as in httpd.conf file
  daemon is mentioned as usr and group. But how I will give
  permission to this user for writing to that folder. Please
  help immediate..
 
  Thanks..and hope positive immidiate response
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
 mailto:mapserver-users@lists.osgeo.org
  mailto:mapserver-users@lists.osgeo.org
 mailto:mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
 mailto:mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 


 --
 Alan Boudreault
 Mapgears
 http://www.mapgears.com


 

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
   
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing)

2009-01-19 Thread Amiya Patra
Hi
I got the error but unable to solve.The apache user don have permision to
write to that folder .In windows how I will check wheather apache user can
write to that folder. Actually in linux my application is running ok. but in
windows vista, I cant find the daemon apache user as in httpd.conf file
daemon is mentioned as usr and group. But how I will give permission to
this user for writing to that folder. Please help immediate..

Thanks..and hope positive immidiate response
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing)

2009-01-19 Thread Amiya Patra
hi
Thanks 4 reply.but already I have tried that  but no result. Actually I want
to know  how to change the ownership of that folder...I have to change the
ownership to apache user and then needs to give permission..

On Mon, Jan 19, 2009 at 7:27 PM, muzaffar hussain mhd.muzaf...@gmail.comwrote:

 hi

 right click on the folder,then select the property and change the read and
 write option to its folder and to its sub folder.

 regards
 muzaffar

 On Mon, Jan 19, 2009 at 7:12 PM, Amiya Patra amiyapatra...@gmail.comwrote:

 Hi
 I got the error but unable to solve.The apache user don have permision to
 write to that folder .In windows how I will check wheather apache user can
 write to that folder. Actually in linux my application is running ok. but in
 windows vista, I cant find the daemon apache user as in httpd.conf file
 daemon is mentioned as usr and group. But how I will give permission to
 this user for writing to that folder. Please help immediate..

 Thanks..and hope positive immidiate response

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing)

2009-01-19 Thread Alan Boudreault
Try this:
http://www.mydigitallife.info/2007/05/25/how-to-take-ownership-and-grant-permissions-in-windows-vista/

Alan


Amiya Patra wrote:
 hi
 Thanks 4 reply.but already I have tried that  but no result. Actually
 I want to know  how to change the ownership of that folder...I have to
 change the ownership to apache user and then needs to give
 permission..

 On Mon, Jan 19, 2009 at 7:27 PM, muzaffar hussain
 mhd.muzaf...@gmail.com mailto:mhd.muzaf...@gmail.com wrote:

 hi

 right click on the folder,then select the property and change the
 read and write option to its folder and to its sub folder.

 regards
 muzaffar

 On Mon, Jan 19, 2009 at 7:12 PM, Amiya Patra
 amiyapatra...@gmail.com mailto:amiyapatra...@gmail.com wrote:

 Hi
 I got the error but unable to solve.The apache user don have
 permision to write to that folder .In windows how I will check
 wheather apache user can write to that folder. Actually in
 linux my application is running ok. but in windows vista, I
 cant find the daemon apache user as in httpd.conf file
 daemon is mentioned as usr and group. But how I will give
 permission to this user for writing to that folder. Please
 help immediate..

 Thanks..and hope positive immidiate response

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 mailto:mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users



 

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
   


-- 
Alan Boudreault
Mapgears
http://www.mapgears.com

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users