chmod cache and logs folders