Nominatim on local server

In my previous blog I have installed Nominatim in my home folder and changed the directory of local server from /var/www/html to /home/amisha.

To do the same you can refer my blog -> reference

That was creating lot of problem to me as I was not able to run any php file in /var/www/html directory. So, first of all I restore the local server to the default directory.

But I was not able to run the Nominatim located in the /var/www/html directory.

eee.png

After reading the settings.php file I came to know that

@define(‘CONST_Website_BaseURL’, ‘http://’.php_uname(‘n’).’/’);

to

@define(‘CONST_Website_BaseURL’, ‘http://’.php_uname(‘n’).’/Nominatim/build/website/’);

Here, http://’.php_uname(‘n’) means username -> http://amisha/ or localhost

It was searching to the localhost/search.php but the actual path was localhost/Nominatim/build/website/search.php

ccc

Finally, the problem is solved.

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s