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%


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

permanent link

answered 15 Dec '16, 14:20

mtmail's gravatar image

mtmail
3.7k1057
accept rate: 30%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×588

question asked: 15 Dec '16, 10:40

question was seen: 1,312 times

last updated: 15 Dec '16, 14:20

powered by OSQA