Mandeep Singh
YoBlogger Blog

YoBlogger Blog

Nginx files and folders permissions 755 and

Mandeep Singh's photo
Mandeep Singh
·Sep 3, 2022·

1 min read

find  /path/to/website -type d -exec chmod 755 {} \;

find /path/to/website -type f -exec chmod 644 {} \;

sudo chown -R www-data:www-data /path/to/website

example

find  code -type d -exec chmod 755 {} \;
find code -type f -exec chmod 644 {} \;
sudo chown -R www-data:www-data code
 
Share this