Preheat oven to 350 °F
Melt the butter (in the microwave is easiest) and brush the bottom and sides of your pan with some of the melted butter. 
1/2 cup butter
Take one sheet of phyllo and lay it with the shorter side facing you.  Brush the top with melted butter.  Sprinkle approximately 2 tablespoons of coconut over the phyllo and then cover with a second piece of phyllo.  Fold like an accordion and then turn it to resemble a rose.  Place in center of your pan. Repeat with the remaining phyllo and place each accordion strip around the phyllo already in the pan.  When all the phyllo is used, and the pan is filled, brush the top with the remaining melted butter. Bake in the middle rack of your oven for approximately 20 minutes, until golden brown.
375 grams phyllo dough, 1½ cups shredded coconut, sweetened
While your phyllo is baking, prepare the custard by combining the remaining ingredients, except for the pineapple.  Whisk until well combined, and set aside.
5 eggs, large, 1 cup sugar, 398 ml coconut milk, 1 tsp vanilla extract, 1 tsp coconut extract, ¼ tsp salt
Prepare your pineapple by cutting it into ¼ - ½ inch chunks.
1 cup pineapple, cut into small chunks
Once your phyllo is out of the oven, pour the custard evenly over the phyllo; use a ladle to help disperse the custard everywhere.  Scatter the pineapple over the top, and strategically push some pineapple pieces into the phyllo folds, under the custard.  
Return pan to the oven and bake in middle rack for about 30 - 35 minutes until the custard is set and the top is lightly browned.  Allow to cool and then dust lightly with icing sugar if desired.
icing sugar to dust, optional
Enjoy!