GrecoTechnology / Bizbox

Bizbox project
GNU General Public License v3.0
1 stars 0 forks source link

Wordpress reports "Background updates are not working as expected" #6

Open GrecoTechnology opened 1 year ago

GrecoTechnology commented 1 year ago

Describe the bug Wordpress > Tools > Site Health > Critical Issue shows the following error message

Background updates ensure that WordPress can auto-update if a security update is released for the version you are currently using.

Passed No version control systems were detected.
Error Your installation of WordPress prompts for FTP credentials to perform updates. (Your site is performing updates over FTP due to file ownership. Talk to your hosting company.)

Mitigation I'm able to fix this issue by modifying wp-config.php here

sudo nano /opt/domain.com/wordpress/_data/wp-config.php

and pasting this at the end of the file

/** Forces security updates to be done through PHP */
define('FS_METHOD','direct');

Next Steps Need to investigate if this is an issue with new WordPress installations, or a remnant of a bug from old WordPress installations

btmarouane commented 1 year ago

You don't need to add define('FS_METHOD','direct'); manually, its already set in /opt/domain.tld/wordpress/config/wordpress.env.yml