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

Self-hosted Nominatim Server not working

0

Having recently set-up my own OSM server using the instructions at switch2osm.com I have been attempting to configure a nominatim server.

I'm running Ubuntu 20.04 and followed the instructions here: https://nominatim.org/release-docs/latest/appendix/Install-on-Ubuntu-20/

The directory pointed to within Apache2 nominatim.conf file exists (svr/nominatim/build/website) and permissions are set correctly - if I put a basic html or php file in the directory I can access either. However, the installer didn't put search.php, status.php etc in the same location. Copying the versions files that the installer did create hasn't worked.

The installation is otherwise sound - I've imported data and accessing nominatim via the test server (nominatim serve) works for forward and reverse look-ups.

Any suggestions?

DD.

asked 20 Dec '21, 16:00

DephiDinosaur's gravatar image

DephiDinosaur
11112
accept rate: 0%


One Answer:

2

As the installation page says "The webserver should serve the php scripts from the website directory of your project directory." (not the build directory). For example $USERHOME/nominatim-project/website

If the *.php files are not in the project directory's 'website' sub-directory yet, try running "nominatim refresh --website" from within the project directory. That copies the necessary files from the build directory to the project directory (it also changes the first lines of each file slightly).

answered 20 Dec '21, 16:09

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

edited 20 Dec '21, 16:15