# You need to create a minimal configuration file that tells nominatim
-# the name of your webserver user and the URL of the website:
+# the name of your webserver user:
#DOCS:```sh
tee settings/local.php << EOF
<?php
@define('CONST_Database_Web_User', 'apache');
- @define('CONST_Website_BaseURL', '/nominatim/');
EOF
#DOCS:```
# You need to create a minimal configuration file that tells nominatim
-# the name of your webserver user and the URL of the website:
+# the name of your webserver user:
#DOCS:```sh
tee settings/local.php << EOF
<?php
@define('CONST_Database_Web_User', 'apache');
- @define('CONST_Website_BaseURL', '/nominatim/');
EOF
#DOCS:```
sudo a2enconf nominatim
sudo systemctl restart apache2
-# You need to create a minimal configuration file that tells nominatim
-# where it is located on the webserver:
-
-#DOCS:```sh
-tee settings/local.php << EOF
-<?php
- @define('CONST_Website_BaseURL', '/nominatim/');
-EOF
-#DOCS:```
-
# The Nominatim API is now available at `http://localhost/nominatim/`.
fi #DOCS:
sudo a2enconf nominatim
sudo systemctl restart apache2
-# You need to create a minimal configuration file that tells nominatim
-# where it is located on the webserver:
-
-#DOCS:```sh
-tee settings/local.php << EOF
-<?php
- @define('CONST_Website_BaseURL', '/nominatim/');
-EOF
-#DOCS:```
-
# The Nominatim API is now available at `http://localhost/nominatim/`.
fi #DOCS: