Cacti are members of the succulent family of plants, and as such have some special requirements. Most (but not all) cacti require a sandier, coarser soil. Fewer nutrients and less moisture are ideal, and full sun is almost always welcome. Fertilizers can be used, but you can successfully fertilize your cactus by making a soil blend that already has the fertilizing ingredients in it.
Take two parts soil and two parts sand and blend them together thoroughly. Use a high quality, rich potting soil as the cactus will glean nutrients from this blend gradually over many weeks.
Add one-half part peat moss, bone meal and limestone. Follow the manufacturer's directions on the package for properly dosing the bone meal and limestone. These two ingredients have a wide range of concentrations and strengths, and failure to duly note your particular kind's special instructions could result in overly acidic or alkaline soil, or otherwise create a less than hospitable environment for your cactus.
Mix one part liquid fertilizer with four parts water in a spray bottle labeled as fertilizer for your cactus. This will prevent you from using this specially diluted blend on other plants that have a greater need for fertilizer.