I'm pulling my hair out with Redhat at the moment...
How can I set the default user:group permissions for apache generated files and folders?
Hope this makes sense.
Check /etc/passwd maybe apache user already created, in debian it's www-data, in redhat maybe something else..
Anyway this should be added to httpd.conf file. (Or any other configuration apache file in redhat (not familiar with redhat) something like apache2.conf)
to set group and user for all public_html directory use this command