It is not directly related to this, but I encountered the same problem after I moved the same site to another server. The only difference is that I am now using Nginx instead of Apache. I checked the owners before, and they were all correct (otherwise normal loading will not work before). I leave this here as a link.
The fix in my new case was a simple change in ownership of the web root and all the files inside.
Nginx and PHP5-FPM work with the same user: www-data , which is in the group with the same name: www-data .
Thus, a change in all ownership of files recorded in this case:
su chown -R www-data:www-data /path/to/wordpress/root/
And the problem has disappeared.
I still do not know the original cause of my old problem, I had to wipe, start from scratch and restore messages, plugins, etc. from scratch.
source share