How to Install TileServer PHP on Windows 10

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.

Pre-requisites

Before you start the installation, you need to have the following:

Step 1: Download TileServer PHP

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.

Step 2: Extract the compressed File

Extract the TileServer PHP compressed file by right-clicking on it and selecting "Extract Here" from the context menu.

Step 3: Copy the extracted files to the Webroot Folder

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.

Step 4: Rename the settings.sample.php file

After copying the extracted files, locate the settings.sample.php file and rename it to settings.php.

Step 5: Open the settings.php file in a text editor

Open the settings.php file using a text editor, such as Notepad or Notepad++.

Step 6: Configure the settings.php file

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.

Step 7: Start the web server

Open your web server control panel, and start the server application.

Step 8: View TileServer PHP in the Web Browser

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!