Tuesday, November 22, 2016

Linux - Permission /var/www/html

Problem :
fatal: could not create work tree dir '/var/www/html/secret': Permission denied

Solution :
$ sudo usermod -a -G www-data <username> 
$ sudo chown -R www-data:www-data /var/www
$ sudo chmod -R g+rwX /var/www

No comments:

Post a Comment