Change newrelic to flag
set logfile to stdout
rebuild
rebuild
rebuild
Set newrelic daemon logfile to stdout
Move newrelic settings to buildpack
Try php in compile hook