Log and cache directory need to have 777 permissions.
Incorrect user variable in database template.