The habitats where beech fern~(Phegopteris connectilis) grows:

Caledonian forest
Montane dwarf shrub heath
Montane scrub
Mountain ledge
Rocky slope
Scree
Wet woodland