Need help with WordPress permissions on server
I have lots of WordPress installations on one of my servers. Before they was split on three different VPSs, but now all is at one server.
My issue is when it comes new security updates, 4 of my installations do update automatically, the rest don't. Thats apply to main wordpress versions, and plugins and themes.
Beside themes I want everything to auto update, or that I can just press update in the control panel (for plugins/themes).
The real issue here is file/folder permissions. My folder has 755, and my files has 664. And then the update don't work. When I set the file/folder permission to 775 it works. And after the update, the permissions is automatically set back to 755 and 664.
How can I fix this issue? I want all major and minor updates to WordPress to automatically be installed. Not just the 4 installations that get it today.
And I want to press update on plugins and themes and get them updated.
Can a script solve the last issue. A script that I can run (bash) before I start updating?
How will that script look like? I can only change file/folder permissions on files and folders that's need updating, or the settings will be 775 on all folders and files. That's a security risk?
And how to solve the first issue, that WordPress always is updated on all sites?
Powered by Hetzner.com, backed up by OVH, Kimsufi and VULTR.com