]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
provide contact for 403s
[nominatim.git] / utils / setup.php
index 80c139f761f6d749cba900445e820aebfb7e1353..55e0038c2d20b3ed5b4f011393d5677ad41ab8a9 100755 (executable)
                @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)