Image of File permission related issueImage comes from https://jeweltheme.com/unable-create-wordpress-directory-uploads/
  1. Connect to server by ssh
sss root@<your servier ip>

Navigate to cd public_html/wp-content

sudo mkdir uploads

Change the owner and group of the uploads folder to www-data by executing this command:

chmod 755 -R uploads 
chown -R www-data:www-data uploads

Done, now try to upload file again.

For plugin and theme install or updates

sudo chown -R www-data:www-data /var/www/html/example.com

By toihid

Leave a Reply