Add chgrp/chmod to prevent error on initial setup

Without this fix, the initial environment broken due to the web server not
being able to write to the config.php file, which requires the user to
ssh into the instance and fix the permissions.