fix config permissions
create log directory