In general you need to have faith in God, be free of any addiction to harmful substances, following the law of chastity and willing to follow the rules of the church. This article is helpful.