You could also do this if you're configuring within a *nix based os
find <parent directory> -type d -exec cp <parent directory>/<Filename1> {}/ \;
For me this was:-
find ~/moodle-test/xampp/htdocs/moodle/ -type d -exec cp ~/moodle-test/xampp/htdocs/moodle/php.ini {}/ \;