1) Proper bike fit
2) A good endurance seat that works for you (the right size, contours, etc. NOT extra padding)
3) Good riding shorts or bib (well designed chamois to prevent friction and provide appropriate support, NOT cushy padding that feels like a diaper)
4) Ride frequently increasing the duration of your ride in increments. Some soreness and discomfort is normal, extreme pain is overdoing it.