# Nginx files and folders permissions 755 and

```plaintext
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

```plaintext
find  code -type d -exec chmod 755 {} \;
```

```plaintext
find code -type f -exec chmod 644 {} \;
```

```plaintext
sudo chown -R www-data:www-data code
```
