I didn't find any error message, the last output in DG log and on command line is:
MIDGARD_SETUP: Creating storage for: 'org_openpsa_relatedto'
MIDGARD_SETUP: Updating storage for: 'org_openpsa_relatedto'
MIDGARD_SETUP: Successfully created database newdb
MIDGARD_SETUP: Importing all required xml packages
Failed to execute /usr/bin/php /usr/local/share/midgard/setup/php/midgard_datagard.php '-c' 'newdb' -a 'dbinstall'
Database, config file, blob dir and all that gets created correctly, but the database itself is empty except for 186 midgard_language entries, one person and one member (interestingly, no group seems to get created). datagard -a upgrade on an existing DB works fine
Self-compiled 8.09.6 allinone on Debian Stable