Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

localhost MBTiles #149

Open
Open

Description

@ethanbyers

I am able to get to the TileServer page but when I go to localhost/tileserver/folder/file where my MBTiles file is saved within htdocs I get a 403 Error saying "You don't have permission to access the requested object. It is either read-protected or not readable by the server." I also ran a MBTiles reader in Safe Software FME workbench with the file and got errors stating "Failed to obtain any schemas from reader 'MBTILES' from 1 datasets. This may be due to invalid datasets or format accessibility issues due to licensing, dependencies, or module loading." I purchased this map from OpenMapTiles so I don't see why the file wouldn't be working in programs designed for that file type. Also very amateur at programming so step by step walk through or trouble shoot would be amazing.

Activity

  1. daliborjanak commented on Feb 18, 2020

    @daliborjanak
    Collaborator

    The tutorial is here https://openmaptiles.org/docs/host/tileserver-php/
    Just copy the mbtiles into a folder next to tileserver.php and then open localhost/tileserver-php/ there will be an interface with sample viewers. If this not works, then might be a problem with Apache config or rights for files

  2. ethanbyers commented on Feb 18, 2020

    @ethanbyers
    Author
  3. prasadrajuv commented on Aug 4, 2020

    @prasadrajuv

    read documentation mbtile is sqlite file need to install phq sqlite module and rewrite and settings for .htaccess
    sudo apt-get install -y php7.4-sqlite
    sudo a2enmod rewrite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions