chown: invalid user: `www:www'" - Error in CentOS

chown: invalid user: `www:www'"  - Error in CentOS

When i grant ownership of the directory to the user, instead of just keeping it on the root system i got this error chown: invalid user: `www:www'"
How to solve this.

When you use this command
"sudo chown -R www:www /var/www/example.com/public_html". ?
You got an error here are the solution that how can you handle this

Just replace the www:www to apache:apache
Example:
sudo chown -R apache:apache /var/www/example.com/public_html

Comments