Group / Owner And Updating Wordpress Plugins
I’m having trouble getting a specific plugin (All In One Event Calender, by Time.ly) to update (all others work fine), and I think the difference is that this plugin requires the ability to write, as it has a cache directory.
I followed a tutorial when I first set up my VPS that had me create a wp-user account, which operates everything in my Wordpress installation. It’s how wordpress updates via ssh, and that seems to work fine. However, my server uses the account www-data to write / execute php (that’s my understanding at least), I tried setting www-data as the group / owner for the plugin directory (and just the cache directory in a separate test), and I can’t get it to update. I can get it to install (requires the group / owner is www-data), but not update.
What combination of group / owner do I need to get a plugin that needs to write to a cache directory to be able to perform automatic updates (done by the user wp-user)?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.