This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Two different nominatim setup on same server

0

Hi All I need two different nominatim setup on same server with two difference database and different nominatim front end. Can it be possible. If yes then please guide me how to do this.

asked 15 Dec '16, 10:40

himsashu's gravatar image

himsashu
11112
accept rate: 0%


One Answer:

1

I assume you run the stable version 2.5.0 or 2.5.1 (http://www.nominatim.org/)

  • install the second Nominatim in a new (different) directory. See https://wiki.openstreetmap.org/wiki/Nominatim/Installation

  • In the step "Customization of the Installation" use different settings: In settings/local.php change CONST_Database_DSN to use different database, for example pgsql://postgres@localhost:5432/nominatim_2 (see settings.php for the default value).

  • When you start the data import from the new directory it will read the settings.php and local.php file and write to that database. If the database name already exists it will NOT overwrite it (that's good).

  • You need two configurations in your Apache configuration. It should be enough to copy the existing block and change the URL path and installation directory.

  • In the local.php set the CONST_Website_BaseURL to the URL you set in the Apache configuration.

If that doesn't work report problems to https://github.com/twain47/Nominatim/issues

P.S. it's possible to merge two countries and use one installation, that might be easier https://help.openstreetmap.org/questions/48843/merging-two-or-more-geographical-areas-to-import-two-or-more-osm-files-in-nominatim

answered 15 Dec '16, 14:20

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Source code available on GitHub .