Skip to main content

Command Palette

Search for a command to run...

Nginx files and folders permissions 755 and

Updated
1 min read
Nginx files and folders permissions 755 and
Y

When you buy hosting through our links, send me invoice , I will install script free.

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