I used this when a process on the server kept creating files as root and apche was unable to read them as it did not have enough priviledges. So I needed to find all files created by a user.
find /var/www/html -user root
Then you can use the following to update all files and folder recursively to a new ownership and group
chown -R apache:apache /var/www/html/*