Mapscript Installation Problems

Thomas Hammerlund tom at MAPLINK.JP
Mon Jul 24 06:13:20 EDT 2006


Hi,

I'm almost set up with Mapserver, but I keep getting an error when I test 
php/mapscript.

I modified the demo_init.html file here:

<! -- Replace the value of the parameter below to the full path to the 
temporary directory where MapServer will write temporary files.  Make sure 
the web user account can write to this directory.-->
<input type="hidden" name="map_web_imagepath" 
value="/var/www/html/itasca/graphics/">

and here:

<!-- Change the "value" of map to the full path and name of your mapfile. 
For Windows users, add the drive letter in front of the path.  ex: 
"c:/inetpub/wwwroot/itasca/demo.map" -->
<input type="hidden" name="map" value="/var/www/html/itasca/demo.map">

I also edited the demo.map file's WMS_ONLINERESOURCE value, and SHAPEPATH to 
"/data".
However pointing the browser to test_draw_map.phtml gives me an error and 
this is displayed:

numlayers; // phpinfo(); // // RENDER MAIN MAP // // Note: If you get errors 
with the saveWebImage() call below, then make sure // that the directory 
specified by IMAGEPATH in the .MAP file exists and is // writable by the 
httpd user. // $img = $map->draw(); $url = $img->saveWebImage(MS_PNG, 0, 0, 
0); printf("\n", $url, $map->width, $map->height); // // LEGEND // $img = 
$map->drawLegend(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); printf("

I'm running Fedora 5.  Does anyone have any ideas what the problem could be? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060724/fe197fc1/attachment.html


More information about the mapserver-users mailing list