@bobnoordam

WordPress asks for ftp credentials instead of running auto updates

WordPress asking for ftp credentials instead of running auto updates

1 Check wp-config.php

  • edit wp-config.php, and add to the custom section
define('FS_METHOD', 'direct');

Without this setting WordPress will always ask for credentials, even if your file permissions are correct.

Next, check file and folder permissions

2 Check permissions of files and directories in de wordpress folder

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 600 wp-config.php 
chown www-data:www-data * -R