]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
script to compare to nominatim instances
[nominatim.git] / utils / setup.php
index c0bf0a39e994165b35c84b51ee2117f31fe8d153..f2feeadb2c89a2b260998aaafcc892eb4dbeb518 100755 (executable)
                        fail("osm2pgsql not found in '$osm2pgsql'");
                }
 
-        if (!is_null(CONST_Osm2pgsql_Flatnode_File))
-        {
-            $osm2pgsql .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
-        }
+               if (!is_null(CONST_Osm2pgsql_Flatnode_File))
+               {
+                       $osm2pgsql .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
+               }
                $osm2pgsql .= ' -lsc -O gazetteer --hstore';
                $osm2pgsql .= ' -C '.$iCacheMemory;
                $osm2pgsql .= ' -P '.$aDSNInfo['port'];
                @symlink(CONST_BasePath.'/website/js', $sTargetDir.'/js');
                @symlink(CONST_BasePath.'/website/css', $sTargetDir.'/css');
                echo "Symlinks created\n";
+
+               $sTestFile = @file_get_contents(CONST_Website_BaseURL.'js/tiles.js');
+               if (!$sTestFile)
+               {
+                       echo "\nWARNING: Unable to access the website at ".CONST_Website_BaseURL."\n";
+                       echo "You may want to update settings/local.php with @define('CONST_Website_BaseURL', 'http://[HOST]/[PATH]/');\n";
+               }
        }
 
        if (!$bDidSomething)