Description
Background updates are not working as expected error occurs in wordpress’s site health checking.
Analysis
As shown above, some files are not writable by WordPress, this issue belong to linux system permission mechanism.
Using ‘chmod -R 777 your_wordpress_directory’ may solve the problem, but it’s very dangerous, so don’t do that.
Fix
Get UID of WordPress service
Write a test php programe to get UID of your WordPress service.
<?php
echo exec ('id');
?>
Write above codes to a file named grp.php in your WordPress root directory.
Then open grp.php in browser
Now, we know the uid of WordPress is www-data(may be diffrence in your host).
Changing owner of WordPress files
chown -R www-data:www-data your_wordpress_directory/
Refresh WordPress’s site health checking.
Sloved.