Centos – chown: invalid user: ‘www-data:www-data


I am trying to install laravel , now I need to Set the required permissions for the project . when I wrote sudo chown -R www-data:www-data /var/www/laravel/ I am getting error chown: invalid user: ‘www-data:www-data’ .What is the problem?

Best Answer

The www-data is for ubuntu, try with apache for username and group

sudo chown -R apache:apache /var/www/laravel/ 

Make sure that the package is install.

Related Question