Right, been through this with my motorhome setup so here's the lowdown:
Location & Protection
Mount it on an interior wall if possible — keeps moisture out of your face. If it has to be external, get a weatherproof IP66 cabinet. Your RCD modules will weep otherwise.
Cable Entry
Drill entry holes at the bottom, use proper cable glands (not just whatever you've got lying about), and run conduit up from your consumer unit to your batteries/inverter. Keeps the rodents honest.
Earthing
This is where most people cock it up. You need a proper earth rod driven into the ground outside, bonded back to your consumer unit with 16mm² cable minimum. It's not optional, it's Building Regs. Your insurance won't touch you otherwise.
Incoming Supply
If you're pulling from solar/battery, size your main switch and MCB accordingly. I used a 63A isolator on my setup — took a bit of head-scratching but Victron's wiring guide sorted me out.
Labelling & Testing
Label everything as you go. Seriously. Future you (or your insurer) will thank you. Get a qualified electrician to do the sign-off if you're not approved — costs a few quid but keeps everything above board.
Pro tip: Don't cheap out on the enclosure itself. A £200 Fogstar beats a £60 eBay special when water's dripping on your circuits.