The photon’s time doesn’t ‘stop’ – as far as we can tell. Relativity doesn’t have frames of reference moving at c, so it’s not possible to define how fast time passes for a photon.
Consider an observer traveling close to c relative to the earth. Alpha Centauri would take (say) 10 minutes of their time, which according to an observer on earth took them 4 years. The observer aboard the spaceship explains this as being because the distance (spacetime interval) from our solar system to Alpha Centauri was length contracted from 4 light-years to 10 light-minutes.