[OSM-dev] Problem configuring Cgimap for OSM API

Tom Hughes tom at compton.nu
Fri Aug 31 16:01:11 BST 2012


On 31/08/12 15:41, Arjen de Korte wrote:

> Thanks for your reply. I tried to set the database name by setting the
> environment variables in /env/environment as described in the README:

Err... I think you misunderstood.

It means you need to make sure they are set in the environment of the 
cgimap process.

I don't know exactly how /etc/environment works, but it may be that it 
only takes affect after a reboot? In any case that is a rather drastic 
solution as it will presumably set them for every process in your entire 
system.

Much better to ask Apache to set them if you can (not sure if that's 
possible when Apache starts an fcgi process) or to use a wrapper script 
that sets them and then execs cgimap.

What we do in the production environment is to run the cgimap processes 
as daemons and then just tell apache to connect to them. They are 
started using the scripts/cgimap.init script from the cgimap source.

In fact looking at that script I suspect the README is out of date as 
the variable names are different in the script.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://compton.nu/



More information about the dev mailing list