Newbie Mac OS X MapServer 4.6 question
Bill Whitacre
bw at HIS.COM
Tue Aug 9 13:30:57 PDT 2005
Thanks David & William. I've got the CGI working now.
I took out this line [73] from the itasca.map file:
> WMS_ACCESSCONSTRAINTS none
and set my local website a few lines down and now things are working.
Oh yea, I had to creat a tmp directory for the .png files and give it
write permission.
I'm going to keep working on it and may have more questions but I
feel great just to have gotten this far.
I'll be looking for some international data files tonight/tomorrow.
Thanks again.
bw
---
On Aug 9, 2005, at 3:26 PM, Fawcett, David wrote:
> Post your map file. What is on or near line 73 in your Map file?
>
> What path do you have set for your symbols? Does this match the
> location of the files on your system?
>
> David.
>
> David Fawcett
> Minnesota Office of Environmental Assistance
> david.fawcett at moea.state.mn.us
> 651.215.0200
>
>
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-
> USERS at LISTS.UMN.EDU]On
> Behalf Of William K
> Sent: Tuesday, August 09, 2005 1:43 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Newbie Mac OS X MapServer 4.6
> question
>
>
> On Aug 9, 2005, at 10:21 AM, Bill Whitacre wrote:
>
>
>> I've just installed the MapServer packages from Kyng Chaos and have a
>> couple of questions:
>>
>> 1. When I try the CGI I get the "MapServer Itasca Application" page
>> OK but when hit the Initialize button with Basic Application selected
>> I get the following error:
>>
>>
>>
>>> getString(): Symbol definition error. Parsing error near (none):
>>> (line 73)
>>>
>>>
>>
>> My form variables look like this in the /workshop/index.html file:
>>
>>
>>
>>> <!-- EDIT THE FORM ACTION -->
>>> <form name="demo" method="GET" action="/cgi-bin/mapserv"
>>> onSubmit="submit_form()">
>>>
>>> <input type="hidden" name="layer" value="lakespy2">
>>> <input type="hidden" name="layer" value="dlgstln2">
>>> <input type="hidden" name="zoomsize" value=2>
>>>
>>> <!-- EDIT THESE HIDDEN VARIABLES -->
>>> <input type="hidden" name="map" value="/Library/WebServer/
>>> Documents/workshop/itasca.map">
>>> <input type="hidden" name="program" value="/cgi-bin/mapserv">
>>> <input type="hidden" name="root" value="/Library/WebServer/
>>> Documents/workshop/">
>>> <input type="hidden" name="map_web_imagepath" value="/Library/
>>> WebServer/Documents/tmp/">
>>> <input type="hidden" name="map_web_imageurl" value="/tmp/">
>>>
>>>
>>
>> What have I done wrong?
>>
>>
> The root hidden variable is a web path (URL), not a file system path,
> so it should be "/workshop/". That's all I can think of from this
> snippet. But, I'm getting the same thing, and the logs don't tell me
> anything. Hmm. It's been so long since I used CGI MapServer. Maybe
> someone else has an idea.
>
> I see that the itasca readme says it's made for MapServer 4.0, there
> have been enough changes from then to MapServer 4.6 that the demo may
> not work. I recall seeing some messages on the list about that.
>
> Maybe I should remove that recommendation from my installer readme.
> You could try the tutorial from the MapServer documentation page.
>
>
>> 2. When I try the testphp.php script - that looks like this:
>>
>> I get the following error:
>>
>>
>>
>>> Warning: dl(): Unable to load dynamic library '/usr/lib/php/
>>> extensions/no-debug-non-zts-20020429/php_mapscript.so' - (null) in /
>>> Library/WebServer/Documents/testphp.php on line 2
>>>
>>>
>>
>> along with the normal PHP info stuff.
>>
>> Again, what have I done wrong?
>>
>>
> Don't know if you did anything wrong, but somehow your httpd.conf is
> looking in the wrong location for php_mapscript.so. It should be /
> usr/local/php4/lib/php/extensions/no-debug-non-zts-20020429. Are you
> using my PHP with this or Apple's PHP? It doesn't work with Apple's
> PHP.
>
> -----
> William Kyngesburye <kyngchaos at kyngchaos.com>
> http://www.kyngchaos.com/
>
> [Trillian] What are you supposed to do WITH a maniacally depressed
> robot?
>
> [Marvin] You think you have problems? What are you supposed to do
> if you ARE a maniacally depressed robot? No, don't try and answer,
> I'm 50,000 times more intelligent than you and even I don't know the
> answer...
>
> - HitchHiker's Guide to the Galaxy
>
---
Bill Whitacre
bw at his.com
More information about the MapServer-users
mailing list