A former South Carolina youth pastor has been sentenced to federal prison after appearing in court on Tuesday.