Solution:1
It’s definitely a files & directories permission issue. Move the define('FS_METHOD','direct');
line back to where it was (that change is causing a different error).
The ‘www-data’ user is the default user for Apache (and other HTTP servers?), in case you didn’t know.