There are cases where we may need to host a map on our own server, and we will explore two different ways of doing this.
In the first case, we will use PHP. While this is not the best option for this task, PHP can be found installed on every server, and projects using PHP are easy to deploy.
First of all, we will export our maps from TileMill. The format that we will export in will be
.mbtiles, which is actually a SQLite file containing the data and the tiles.