[mapserver-users] Server Root

Andrew Lewin alewin at spatialconserve.com
Sat Feb 20 16:16:21 EST 2010


Thank you for your help Alex and Bob.  I realized that the ms4w folder  
was not in the root directory.  Once I moved it, I was able to view  
the example.

Best Regards,

Andrew

Andrew Lewin, M.Sc., Adv. Dipl. GIS
President
Spatial-Conserve Inc.
www.spatialconserve.com
Email: alewin at spatialconserve.com
Tel: (905) 639-4646
Mobile: (905) 630-8441
Skype: andrew.lewin99




On 20-Feb-10, at 11:06 AM, Alexander Petkov wrote:

> Most likely the absolute path to example1-1.map is not correct and
> thus cannot be found by mapserv.
>
> If you do "ls -alh /ms4w/apps/tutorial/htdocs/example1-1.map" in a
> terminal window is it being listed? I am assuming that this can be
> done on a Mac, of course...
>
> Alex
>
> On Fri, Feb 19, 2010 at 5:52 PM, Andrew Lewin
> <alewin at spatialconserve.com> wrote:
>> Dear Listers,
>> I am a beginner user of Mapserver.  I installed Mapserver and Apache2
>> successfully.  I am running Mac OS X 10.5.8 Leopard.
>> I downloaded the tutorial data and tried to view Example 1, but I  
>> was unable
>> to do so.  I got the error for the following command:
>> http://192.168.1.147/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map
>> msLoadMap(): Unable to access file.
>> (/ms4w/apps/tutorial/htdocs/example1-1.map)
>> I noticed that the example1-1.map was not in the htdocs file in the  
>> file
>> tree that I downloaded, but it was in the mapfile folder.
>> I still got the same error.
>> I searched around for the solutions on the web, but I didn't really
>> understand them.  I think the problem is that I can't find the web  
>> root
>> where the files should be stored.
>> I looked in the httpd.config file and saw that the ServerRoot was "/ 
>> usr" so
>> I added the tutorial files in that folder, but again no solution.   
>> What am I
>> doing wrong?
>> I would appreciate any help you can provide?
>> Thanks,
>> Andrew
>> Andrew Lewin, M.Sc., Adv. Dipl. GIS
>> President
>> Spatial-Conserve Inc.
>> www.spatialconserve.com
>> Email: alewin at spatialconserve.com
>> Tel: (905) 639-4646
>> Mobile: (905) 630-8441
>> Skype: andrew.lewin99
>>
>>
>>
>>
>> _______________________________________________
>> 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