Plant strawberries in full sun. They need at least 6 hours of direct sun a day, and 8 hours or more gives the most fruit. Keep the bed away from trees and buildings that shade it, and beyond the roots of large trees.
Give them fertile, well-drained soil rich in organic matter, slightly acidic at about pH 5.8 to 6.5. Strawberries do not tolerate soggy soil, so use a raised bed where drainage is poor. Have your soil tested and work in compost before planting. Higher ground with good air flow helps limit frost damage to the blooms and lets the berries dry faster. Avoid spots where strawberries grew in the last few years, or where potatoes, tomatoes or sod grew recently.
Plant as early in spring as the soil can be worked. Set potted plants out once the risk of frost has passed, at the same depth they grew in the pot. Set bare-root plants with the middle of the crown level with the soil: too shallow and they dry out, too deep and the leaves cannot come up. In cold areas, do not plant in fall, when freezing and thawing can heave new plants out of the soil.
Space plants 1 to 3 feet apart. Give June-bearing kinds, which send out the most runners, the wider spacing.