From: Sarah Hoffmann Date: Sun, 20 Dec 2020 11:09:27 +0000 (+0100) Subject: switch documentation to describing dotenv X-Git-Tag: v3.7.0~66^2 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/45148c707860f9d41653f65618e6764c8a7fb87e switch documentation to describing dotenv --- diff --git a/docs/admin/Advanced-Installations.md b/docs/admin/Advanced-Installations.md index 5b0275b3..5701992c 100644 --- a/docs/admin/Advanced-Installations.md +++ b/docs/admin/Advanced-Installations.md @@ -162,11 +162,11 @@ PostgreSQL server process. On the client side you now need to configure the import to point to the correct location of the library **on the database server**. Add the following -line to your your `settings/local.php` file: +line to your your `.env` file: ```php -@define('CONST_Database_Module_Path', ''); +NOMINATIM_DATABASE_MODULE_PATH="" ``` -Now change the `CONST_Database_DSN` to point to your remote server and continue +Now change the `NOMINATIM_DATABASE_DSN` to point to your remote server and continue to follow the [standard instructions for importing](/admin/Import). diff --git a/docs/admin/Faq.md b/docs/admin/Faq.md index bca6b49d..6203959d 100644 --- a/docs/admin/Faq.md +++ b/docs/admin/Faq.md @@ -211,11 +211,3 @@ for more information. ### Can I import negative OSM ids into Nominatim? See [this question of Stackoverflow](https://help.openstreetmap.org/questions/64662/nominatim-flatnode-with-negative-id). - -### Missing XML or text declaration - -The website might show: `XML Parsing Error: XML or text declaration not at start of entity Location.` - -Make sure there are no spaces at the beginning of your `settings/local.php` file. - - diff --git a/docs/admin/Import.md b/docs/admin/Import.md index 792070e4..41942d6f 100644 --- a/docs/admin/Import.md +++ b/docs/admin/Import.md @@ -5,18 +5,17 @@ from an OSM planet file and how to keep the database up to date. It is assumed that you have already successfully installed the Nominatim software itself, if not return to the [installation page](Installation.md). -## Configuration setup in settings/local.php +## Configuration setup in `.env` -The Nominatim server can be customized via the file `settings/local.php` -in the build directory. Note that this is a PHP file, so it must always -start like this: - -