Thanks, I have now created a new user, added it to the www-data group and also changed the ownerships of the files. Sofar no crash and I am able to run the php bin/magento setup:di:compile without problems.
– user3091199Apr 27 '19 at 12:21