[Fwd: Re: [Mapserver-users] WFS Anyone?]

Keith Campbell scoota at supanet.com
Tue Mar 23 18:17:41 EST 2004


Frank,

Setting the PROJ_LIB environment variable via the Apache configuration 
file has done the trick.

Thanks again.

Keith

-------- Original Message --------
Subject: 	Re: [Mapserver-users] WFS Anyone?
Date: 	Tue, 23 Mar 2004 20:48:59 +0000
From: 	Keith Campbell <scoota at supanet.com>
Reply-To: 	scoota at supanet.com
To: 	Frank Warmerdam <warmerdam at pobox.com>
References: 	<405E201E.7080900 at supanet.com> <405E3904.9080704 at pobox.com> 
<405F6156.3090108 at supanet.com> <405F661C.5040302 at pobox.com> 
<405F7326.8090500 at supanet.com> <405FA694.3050202 at pobox.com>



Frank,

That's excellent information, thanks for taking the time. I must admit 
I'm relatively new to UNIX and it's a dark and mysterious world to me.

I'll request the server administrator to alter the Apache httpd.conf 
file to include your suggested 'SetEnv' statement.

Cheers,

Keith

Frank Warmerdam wrote:

> Keith Campbell wrote:
>
>> Frank,
>>
>> The files you speak of appear to be in /export/home/local/util/proj/nad
>>
>> Assuming that this location is not being picked up, I set PROJ_LIB to 
>> point to this directory. However, that didn't resolve the problem. 
>> Possibly this is due to the fact i don't have admin rights, and 
>> although the variable was reported to have changed, when I logged out 
>> and back in again, the variable was not set. I think I will need to 
>> get the server administrator to set this variable and try again?
>
>
> Keith,
>
> I gather you are working on unix.  To set an environment variable on unix
> in such a way that it will affect a cgi-bin you will normally need to add
> a "SetEnv" directive in your apache configuration file.  Something like:
>
>
> SetEnv PROJ_LIB /export/home/local/util/proj/nad
>
> Alternatively, you can setup a "cover script" for mapserver that sets
> appropriate environment variables.  I have used a shell script like the
> following in the past.
>
> #! /bin/sh
>
> MS_MAPFILE=/u/www/gmap/htdocs/gmap75.map
> export MS_MAPFILE
>
> /u/pkg/mapserver/mapserv
>
> exit 0
>
> In general setting an environment variable at the command line on Unix
> just sets in in that shell instance, and subshells.  It has no external
> effect.  To set it everytime you login, add it to your shell startup 
> file.
> To add it for all users there is usually a shell startup script in 
> /etc that
> can be altered though I seldom do it that way.  In any event, it might 
> not
> have the desired effect on web servers that aren't started directly 
> from a
> shell.  There is no equivelent to the "global" environment of Windows NT.
>
> Best regards,
>
> -- 
> ---------------------------------------+-------------------------------------- 
>
> I set the clouds in motion - turn up   | Frank Warmerdam, 
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>
>




More information about the mapserver-users mailing list