Various houseplant mediums rich in porous organic materials, such as peat moss or leaf mold, should suffice. To promote better water flow, adding coarse sand or perlite is recommended.
Ferns prefer well-draining soil that is rich in organic matter. You can use a potting mix that is specifically designed for ferns.