Workshop demo problem

Jacob Delfos jacob.delfos at MAUNSELL.COM
Fri Jan 7 06:37:00 PST 2005


Hi Ante,

Where does the PHP come in? Theoretically, this should not have to do
with the mapserv.exe process.

When you say "move everything to cgi-bin", do you mean you also create
your temporary files there? That would explain it, if you specified
write access to cgi-bin.

I think the following lines should allow the mapserv.exe process to
write to your tmp directory:

--------------------------------------------------------
<Directory "C:/ServerRoot/workshop/tmp/">
AllowOverride None
Options Indexes MultiViews
Order allow,deny
Allow from all
</Directory>
--------------------------------------------------------

(I'm not at work, so I'm making this up.... but I think that's what I
put there)
Try this, and check whether any files appear in your tmp directory. Also
check your apache log (c:/program files/apache
group/apache/logs/error.log or something).

It may not hurt to add a slash behind your "root" input field value.

regards,

Jacob





-----Original Message-----
From: Ante Drnasin
To: 'Jacob Delfos'
Sent: 1/7/2005 10:12 PM
Subject: RE: [UMN_MAPSERVER-USERS] Workshop demo problem

Hi Jacob!

Thanx for getting back to me....

When I said that I'm getting back the "string is empty" I wanted to say
that there is a response from mapserv.exe and that is working....

Which lines have you added to your apache httpd.conf file?

I'm not sure what you mean by this?I have changed the alias for
/cgi-bin/ and added the php instructions but that's irrelevant....what
else I have to do?

One update on the matter.....

If we put the project(.map file and everything else) in cgi-bin
directory where mapsrv.exe resides than our example works (havent' tried
the workshop example....just wanted to do that)...

So the problem is that mapserv.exe cannot "look" for .map file outside
the cgi-bin dir?.....

I'm going nuts the whole day :)

Once again thanx for anser and for taking time to help....

Ante


-----Original Message-----
From: Jacob Delfos [ mailto:jacob.delfos at MAUNSELL.COM
<mailto:jacob.delfos at MAUNSELL.COM> ]
Sent: Friday, January 07, 2005 2:42 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Workshop demo problem

Hi Ante,

It sounds like you have not specified write permissions for Apache.
Which lines have you added to your apache httpd.conf file? You have to
make sure that "C:/ServerRoot/workshop/tmp/" has write permissions. Then

check whether files are written to it.

The reason it says "string is empty" when you go to mapserv.exe is that
you haven't told the program what to do. It won't throw the error since
it's not trying to write.

regards,

Jacob


-----Original Message-----
From: UMN MapServer Users List
To: MAPSERVER-USERS at LISTS.UMN.EDU
Sent: 1/7/2005 9:04 PM
Subject: [UMN_MAPSERVER-USERS] Workshop demo problem

Hi there....we have installed mapserver 4.4.1 on Win2000, apache 1.3.33
and
php 4.3.7(as SAPI)...

The problem started when we wanted to install the workshop demo....

As suggested we changed the hiden vars in index.html so it looks like
this

<!-- EDIT THESE HIDDEN VARIABLES -->
     <input type="hidden" name="map"
value="C:/ServerRoot/workshop/itasca.map">
     <input type="hidden" name="program" value="/cgi-bin/mapserv.exe">
     <input type="hidden" name="root" value="C:/ServerRoot/workshop">
     <input type="hidden" name="map_web_imagepath"
value="C:/ServerRoot/workshop/tmp/">
     <input type="hidden" name="map_web_imageurl"
value="/workshop/tmp/">

When clicking the initialize button the mapserv.exe crashes with message

"Memory could not be writen" .....in other case the itasca.map file
could
not be found....

Here are some other details if needed....

Our server root is in c:/ServerRoot/ ....apache is installed in default
dir.... /cgi-bin/ alias points to  c:/ServerRoot/cgi-bin/ where the
mapserver/bin/ directory is copied to....

If the browser is pointed to mapserver.exe the default message about
query
string being empty is displayed....

Any help would be much appricited...if you need any more info just let
me
know....



More information about the MapServer-users mailing list