Automatic Upgrade Breaks when Owner in *NIX is not Web Server user
|Reported by:||captbrando||Owned by:|
After troubleshooting an automatic upgrade issue off and on for about a year, I think I have finally discovered the issue that caused the auto upgrade to fail.
IN this setup, I had a user with their own directory and site. Their unix user ID owned the directory and files, and the webserver's group had write access to all the files (verified in the apache config that it was using that group).
The automatic upgrade ONLY worked when I changed the user ownership to that of the webserver user ID. I did nothing to permissions, just changed who owned the file, then the automatic upgrade worked. This should not be how wordpress works, as from a permissions perspective, it has access to modify anything inside those directories (under the group write permission bit). I'm not sure WHICH file changed the behavior, but when I changed all the wp* files recursively to be owned by the webserver, it worked.