Measure the height or length of the section of the cabinet base to which you want to attach the hinges.
Cut a length of hardboard to fit inside your cabinet along the section where the hinges need to be fitted.
Measure the distance between the screw holes on your hinges and the distance between the hinge brackets themselves if you need to fit more than one.
Mark out where the screw holes need to be fitted to your cabinet base on the length of hardboard you cut. If you need to fit multiple hinges, measure the distance between the bottom screw holes of each to make sure you're aligning your guide holes correctly. Place the hinges over the guide holes to make sure they're properly positioned, and make adjustments if necessary.
Drill through the guide holes you've marked on the hardboard.
Clamp the hardboard guide you've made to the section of the cabinet to which you want to attach the hinges, making sure it's level or plumb. Use a bubble level to ensure that your template is properly positioned.
Measure the length of the screws you're using to secure your hinges and the thickness of the hardboard guide. Add the two together and set the depth guide on your drill to the measurement you're left with before drilling through your template and into your cabinet bases.