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.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
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)
User www Group www
to set group and user for all public_html directory use this command
chown -R www:www /your_public_html