Begin by preheating the oven to 350°F (180°C).
In a large mixing bowl, place the flour, and then add the sugar, baking powder, and cinnamon. Stir these dry ingredients together.
Incorporate the oil, eggs, and vanilla extract, and vigorously beat the mixture with a wooden spoon or spatula. Gently fold in the carrots, walnuts, coconut, and pineapple, continuing to beat until the batter is smooth.
Evenly spoon the batter into the cake pans and bake for 45–50 minutes or until the cakes have risen well and turned a beautiful golden brown. To ensure they are cooked in the middle, insert a skewer into the centre—if it emerges clean, the cakes are ready. Transfer them to a wire rack to cool.
Place the cream cheese and butter into a bowl. Sift in the confectioners’ sugar, add the vanilla extract, and use an electric whisk to blend until the mixture is smooth.
Carefully remove the cakes from the pans and peel off the baking parchment. Position one cake upside down on a serving plate and spread half of the icing over it. Place the other cake on top and generously spread the remaining icing over the top.