Lamp: a2enmod command not found

Hmm Apache should be installed by the script as well: https://github.com/nextcloud/nextcloudpi/blob/master/lamp.sh
Perhaps something failed with this. Check the scripts output where this should have happened.

Otherwise maybe @nachoparker might be able to help.