[Geocoding] Nominatim Installation Questions

Sarah Hoffmann lonvia at denofr.de
Sun Sep 27 21:42:14 UTC 2015


Hi,

On Sun, Sep 27, 2015 at 10:40:59AM -0400, Trevis wrote:
> I hope this is the right place to ask these questions. Seemed to be from
> https://github.com/twain47/Nominatim
> 
> Some background: Working on getting Nominatim setup on a private server for
> reverse geocoding. I've been following the installation guides at
> http://wiki.openstreetmap.org/wiki/Nominatim/Installation_on_Debian_or_Ubuntu
> and http://wiki.openstreetmap.org/wiki/Nominatim/Installation_on_CentOS .
> Fortunately they seem the exact same, save for some directory and
> CentOS/Debian specific differences.
> 
> So the issue I'm experiencing is part of the raw php files are put in the
> body of the html when going to http://myserver/nominatim/{file.php} for any
> of the files included in the website directory. There doesn't appear to be
> anything of this sort on
> http://wiki.openstreetmap.org/wiki/Nominatim/Installation/Troubleshooting .
> 
> If the specific parts that are shown are important/helpful then:
> 
> http://myserver/nominatim/status.php:
> 
> > getOne("select make_standard_name('a')"); if
> > (PEAR::isError($sStandardWord)) { statusError("Module failed"); } if
> > ($sStandardWord != 'a') { statusError("Module call failed"); } $iWordID =
> > $oDB->getOne("select word_id,word_token, word, class, type, country_code,
> > operator, search_name_count from word where word_token in (' a')"); if
> > (PEAR::isError($iWordID)) { statusError("Query failed"); } if (!$iWordID) {
> > statusError("No value"); } echo "OK"; exit;

This means that you have an error in your webserver configuration. It
does not recognise that you want to execute the php file and just
delivers the source code back.

If you are using apache then my guess is that you have forgotten to
load the php module. Try: sudo a2enmod php5. Then restart apache as
advised.

Regards

Sarah



More information about the Geocoding mailing list