Peter Taylor will stay in charge of Gillingham until at least the end of the season, the League One club has confirmed.
Taylor took over as interim boss when Martin Allen was sacked last month and has overseen two wins and a draw during his five games in charge.
The former England U21 manager has now been given the job on a permanent basis on a deal until the end of the 2013/14 campaign, but he could stay on if he ensures survival.
Gillingham are currently 18th in League One, two points above the drop zone.
Chairman Paul Scally told the club's official website: "The players and I are delighted that Peter has agreed to stay on at the club and we wish him every success in his on-going efforts to push the team up the table."
Taylor, who guided the Gills to promotion during one season at Priestfield in 1999/00, most recently took short-term charge of England's U20 side during what was a failed World Cup tournament in Turkey earlier this summer.
The 60-year-old has also managed Leicester, Brighton, Hull and Crystal Palace at club level, while he also led Bahrain's national team between July 2011 and October 2012.