Cannot update Wordpress plugins (file permission issues)?
Permissions
Permissions can be set to 644 for files and 755 for folders. To do so, you can run two quick find commands.
To make all folders in your website path with 755 permissions run the following command
find /path/to/website -type d -exec chmod 755 {} \;
To make all files in your website root directory with 644 permissions, you can run
find /path/to/website -type f -exec chmod 644 {} \;
Please make sure to change /path/to/website with your real path.
Ownership
Ownership means which user and group are controlling the files. Usually, that’s www-data. So what you’ll need to do si
sudo chown -R www-data:www-data /path/to/website
Please make sure to change /path/to/website with your real path.
Once you do it, that’s it, you are good to go.