There is `apache` user instead of `www-data` in Centos. So, use sudo chown -R apache:apache /var/www/html/