TileServer PHP from MapTiler is an open-source map rendering application that allows you to serve map tiles over the internet. In this tutorial, you will learn how to install TileServer PHP on Windows 10.
Before you start the installation, you need to have the following:
Go to the MapTiler Server website, and download the latest version of the TileServer PHP software. It is a compressed file with a .zip extension.
Extract the TileServer PHP compressed file by right-clicking on it and selecting "Extract Here" from the context menu.
Copy the extracted TileServer PHP files to the root directory of your web server. This location is usually located in the htdocs
directory. For example, if you are using XAMPP, you will find the htdocs
directory in the following path: C:\xampp\htdocs
.
After copying the extracted files, locate the settings.sample.php
file and rename it to settings.php
.
Open the settings.php
file using a text editor, such as Notepad or Notepad++.
Inside the settings.php file, locate the line that begins with $basePath
and enter the full path to your TileServer PHP installation. For example, if you installed TileServer PHP in the htdocs
directory, enter the following path:
$basePath='/xampp/htdocs/tileserver-php';
Next, locate the line beginning with $mbtilesFile
and enter the full path to your .mbtiles file. For example, if you have a .mbtiles file named your-tiles.mbtiles
located in a directory named maps
on your C:
drive, enter the following path:
$mbtilesFile='/maps/your-tiles.mbtiles';
Save the settings.php
file.
Open your web server control panel, and start the server application.
To view the TileServer PHP application in the web browser, open your browser and enter the following URL:
http://localhost/tileserver-php/index.html
You should now be able to see and interact with your maps served by TileServer PHP.
Congratulations! You have successfully installed TileServer PHP on your Windows 10 system.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!