sudo apt-get install -y build-essential cmake g++ libboost-dev libboost-system-dev \
libboost-filesystem-dev libexpat1-dev zlib1g-dev libxml2-dev\
sudo apt-get install -y build-essential cmake g++ libboost-dev libboost-system-dev \
libboost-filesystem-dev libexpat1-dev zlib1g-dev libxml2-dev\
- libbz2-dev libpq-dev libgeos-dev libgeos++-dev libproj-dev \
- postgresql-server-dev-9.5 postgresql-9.5-postgis-2.2 postgresql-contrib-9.5 \
+ libbz2-dev libpq-dev libproj-dev \
+ postgresql-server-dev-9.5 postgresql-9.5-postgis-2.2 \
+ postgresql-contrib-9.5 \
apache2 php php-pgsql libapache2-mod-php php-pear php-db \
php-intl git
# If you want to run the test suite, you need to install the following
# additional packages:
apache2 php php-pgsql libapache2-mod-php php-pear php-db \
php-intl git
# If you want to run the test suite, you need to install the following
# additional packages:
#
# Tune the postgresql configuration, which is located in
# `/etc/postgresql/9.5/main/postgresql.conf`. See section *Postgres Tuning* in
#
# Tune the postgresql configuration, which is located in
# `/etc/postgresql/9.5/main/postgresql.conf`. See section *Postgres Tuning* in
# You need to create an alias to the website directory in your apache
# configuration. Add a separate nominatim configuration to your webserver:
# You need to create an alias to the website directory in your apache
# configuration. Add a separate nominatim configuration to your webserver:
sudo tee /etc/apache2/conf-available/nominatim.conf << EOFAPACHECONF
<Directory "$USERHOME/build/website"> #DOCS:<Directory "$USERHOME/Nominatim/build/website">
Options FollowSymLinks MultiViews
sudo tee /etc/apache2/conf-available/nominatim.conf << EOFAPACHECONF
<Directory "$USERHOME/build/website"> #DOCS:<Directory "$USERHOME/Nominatim/build/website">
Options FollowSymLinks MultiViews
# When installing the latest source from github, you also need to
# download the country grid:
# When installing the latest source from github, you also need to
# download the country grid:
-if [ ! -f data/country_osm_grid.sql.gz ]; then #DOCS:
- wget -O data/country_osm_grid.sql.gz http://www.nominatim.org/data/country_grid.sql.gz
+if [ ! -f data/country_osm_grid.sql.gz ]; then #DOCS: :::sh
+ wget -O data/country_osm_grid.sql.gz https://www.nominatim.org/data/country_grid.sql.gz
fi #DOCS:
# The code must be built in a separate directory. Create this directory,
# then configure and build Nominatim in there:
fi #DOCS:
# The code must be built in a separate directory. Create this directory,
# then configure and build Nominatim in there:
# You need to create a minimal configuration file that tells nominatim
# where it is located on the webserver:
# You need to create a minimal configuration file that tells nominatim
# where it is located on the webserver:
tee settings/local.php << EOF
<?php
@define('CONST_Website_BaseURL', '/nominatim/');
tee settings/local.php << EOF
<?php
@define('CONST_Website_BaseURL', '/nominatim/');