My question is that if one person have committed zina in the past and now he have asked for forgiveness, can he become Imam Masjid or Imam namaz in the future of a masjid or it is not allowed.

As long as you are of legitimate birth and are adil then there is no problem with it