Enable hook and compress html
Fix permission