make config apache 2.4 conform
fix typo
fix warning
log error if db_connect failed