digitalocean / do_user_scripts

MIT License
802 stars 237 forks source link

Permission issues with Wordpress script on Ubuntu 16.04 #45

Closed helgatheviking closed 8 years ago

helgatheviking commented 8 years ago

When in the WordPress admin, if I try to install a plugin I get the following error:

Installing Plugin from uploaded file: wppusher.zip Unpacking the package…

Could not create directory.

Which makes me think the script isn't setting the correct permissions on the wp-content folder?

ls -l wp-content output is:

drwxrwxr-x 20 www-data www-data 4096

helgatheviking commented 8 years ago

Update, it looks like my wp-content/upgrades folder had the wrong owner. I'm not sure if that is because I ran this script after the droplet was created, but chown www-data:www-data upgrade seems to have resolved it for me.