helvalius / nominatim-docker

Standalone nominatim server in a docker container
44 stars 43 forks source link

www is missing #16

Open frankvandenbergh opened 8 years ago

frankvandenbergh commented 8 years ago

Hi, I'm completely new here. I installed the docker according to your documentation. It looks everything went well until I try to run it with the browser. I get: You don't have permission to access / on this server.

In the log file I see: [Fri Jun 17 17:40:14.417065 2016] [autoindex:error] [pid 162] [client 172.17.0.1:36688] AH01276: Cannot serve directory /var/www/nominatim/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

When I check the /var/www directory there is no nominatim directory whatsoever.

This is what I see at the installation (might be of interest): `Step 38 : RUN service apache2 start && a2ensite 400-nominatim.conf && /etc/init.d/apache2 reload ---> Running in 8deadba22701

Hopefully you know what is going on, Frank

inem88 commented 8 years ago

Hi! I found that this Dockerfile use ext git repos: https://github.com/twain47/Nominatim.git And there is commit in this repository 11 days ago: https://github.com/twain47/Nominatim/commit/85c72cdccdb6adcad7a78643c569935e88a73182 that "remove --create-website function". To solve problem innner my container - I copy settings/* and nominatim/* to /var/www/settings and /var/www/nominatim accordingly

frankvandenbergh commented 8 years ago

I'm not an export with docker, but I tried to copy these files using: docker cp nominatim_container:var/www/nominatim /var/www/nominatim but this gets me an empty dir

inem88 commented 8 years ago

Files of site exist in /app/nominatim/settings/* and /app/nominatim/website/* inside Docker container. I copy they to /var/www/settings and /var/www/nominatim inside Docker container.

arch1v1st commented 8 years ago

Had the same problem/error, though after following the standard Ubuntu 16.04 instructions (not using docker) the website directory did exist in '/srv/nominatim/Nominatim/build/website' which was properly mapped in my apache conf file. Problem is that no index.php existed in this directory. After studying the latest commit mentioned above, and the removal of 'create-website-function', I realized I could hit search.php directly just fine and ended up just creating a symlink like so:

ln -s search.php index.php

All is working great now! Mentioning this here as this is was the only google result I could find relevant to the error message.