Add wmgUseWikibaseQuery setting
set COMPOSER_HOME
update permissions
add $base_dir param and update composer usage