How does a Church Become a Basilica?

The requirements for a church to become a basilica are that it must be debt free, it must be a consecrated church and there must be a main altar that is resting on the ground.