Mustache failed to create the directory because the web server (Apache) does not have the current permissions.
chown -R apache:apache /var/www/html/
Applying the above command to the right directory fixed the issue and all the files generated as expected once slim was allowed to create the files.