Own goal gifts Portugal a 1-0 lead over Ghana at halftime in must-win World Cup for both teams

Ghana's John Boye, left, grimaces after scoring an own goal during the group G World Cup soccer match between Portugal and Ghana at the Estadio Nacional in Brasilia, Brazil, Thursday, June 26, 2014. (AP Photo/Paulo Duarte) (The Associated Press)

Portugal's Cristiano Ronaldo takes a header on goal during the group G World Cup soccer match between Portugal and Ghana at the Estadio Nacional in Brasilia, Brazil, Thursday, June 26, 2014. (AP Photo/Paulo Duarte) (The Associated Press)

John Boye's own goal gifted Portugal a 1-0 lead over Ghana at halftime in their final Group G game at the World Cup on Thursday, giving Cristiano Ronaldo's side hope of reaching the knockout stage.

Ronaldo had struck the crossbar with an over-hit cross and had a gilt-edged chance saved before Miguel Veloso's left-wing cross was sliced into his own net by Boye in the 31st minute.

Portugal and Ghana both need to win to stand any chance of beating either Germany or the United States to a top-two finish.

Playing as a central striker, Ronaldo was a lively presence at the Estadio Nacional, with the Real Madrid superstar also having two fierce shots saved by Ghana goalkeeper Fatawu Dauda.

Asamoah Gyan squandered Ghana's best two openings.