Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

localhost MBTiles #149

Open
ethanbyers opened this issue Feb 18, 2020 · 3 comments
Open

localhost MBTiles #149

ethanbyers opened this issue Feb 18, 2020 · 3 comments

Comments

@ethanbyers
Copy link

ethanbyers commented Feb 18, 2020

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.

@daliborjanak
Copy link
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

@ethanbyers
Copy link
Author

ethanbyers commented Feb 18, 2020 via email

@prasadrajuv
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants