Anastasio was ordered into a drug court program instead of receiving jail time, E! News said. Beginning next week, he will start the regimented program that requires weekly court appearances and random drug- and alcohol-testing for the next year.
Anastasio previously pleaded not guilty to a seven-count indictment that included three felonies and carried a sentence of up to 14 years in prison.
Under terms of the plea agreement, the singer admitted to attempted possession of a controlled substance and to illegally possessing Vicodin, Percocet, heroin and Xanax when he was stopped.
If Anastasio completes the program, attorney Steve Coffey said his client will be on probation for five years. If not, he could be imprisoned for up to three years.
Coffey said he didn't think Anastasio would have trouble complying with the program's requirements. He said the singer spent a month in a treatment facility after his arrest and has been sober since.
Since Phish disbanded in 2004, Anastasio has been performing as a solo artist.
Wisconsin business offering 'therapeutic cuddling' forced to close
Exploding whale video goes viral on Internet