Everyone experiencing this issue should execute these commands:
sudo usermod -aG www-data $USER
Adds the currently logged in user to the www-data group.
sudo chown -R www-data:www-data /var/www
Changes the ownership of the /var/www directory to www-data group.
sudo chmod -R 774 /var/www
Sets the proper permissions so you can upload files via sftp, manage files via command-line, and upload plugins and media directly in WordPress.
The following is not aimed toward the original poster, but toward a couple of the comment authors:
If this doesn't fix the issue you're having, you've got something else wrong and bashing DO is not going to help anyone. If you want a managed server, look for hosting elsewhere. If you need help, ask someone or hire an admin that knows how to not only 'set things up' but knows how to secure your server as well. You'll be glad you did. DO is not for novices, even if they have a lot of tutorials.
sudo chown -R www-data:www-data /path/to/WordPress/Installation
I am having similar issues. My expectation is when I install WP through the DO admin it should just work. I can't use migration plugins because there are file permission issues in default install of WP. I can't upload plugins because there are file size upload limitations. I can't run certain things because curl isn't working out of the box.
I love the speed and performance but this has been a nightmare trying to migrate simple WP sites.
I have the same problem, but Once I used this command
sudo chmod -R 755 /var/www, one application of the server crashes, so I'm afraid to use commands for change permisions for the other apps that i have... What solution any of you recomend me, because the wordpress it's installed like a sudbomain in my droplet, and I have many differents apps there.
I don't want to do a mistake , but i need to install plugins and new theme for a blog, please help me
After trying many options, changing folder permissions fixed my Wordpress Permalinks issue. I hope this can guide other aspiring professionals as well.