Trigger apache2 logdir mount and fix logdir on Amazon Linux.
Let templates notify the logdir existence test.

Let existence of logdir always be checked.
Add a sleep second before restarting/reloading apache2 to avoid possible timing issues on small instances.
Quote DB name on granting.
set right group on deployed apps

cr https://cr.amazon.com/r/1526530/