BOSTON – David Ortiz hugged Manny Ramirez to welcome him back to Fenway Park. Then Ortiz hit a home run to move alongside his former teammate on Boston’s all-time home run list.

Ortiz hit his 274th homer for the Red Sox to tie his quirky friend for fifth in franchise history, leading Boston to a 10-6 victory against the Los Angeles Dodgers on Friday night in Ramirez’s first game back since his acrimonious departure from the team he helped win two World Series titles.

“Manny did so many good things the longer he played here,” Ortiz said. “All he did was put up numbers. To be right there with him, that caliber of power hitter, it’s a great feeling.”

Adrian Beltre hit a two-run homer in a seven-run fifth inning that helped 22-year-old left-hander Felix Doubront, a former Portland Sea Dog, win his major-league debut.

J.D. Drew also homered for Boston before leaving with a strained right hamstring in the third.

The Dodgers scored once in the ninth to cut the deficit to four runs, and had men on second and third when Ramirez came up with two outs. Josh Bard struck him out to end the game and earn his third save.

Ortiz said he wasn’t nervous.

“I wasn’t the pitcher,” he said. “So I was fine.”

Garret Anderson homered for Los Angeles, and Carlos Monasterios (3-2) lost his second straight decision. He was chased after facing three batters in the fifth, giving up six runs on eight hits and two walks, striking out two.

Ramirez was greeted warmly by the Red Sox and with a mixed reaction from a sold-out crowd that included Roger Clemens, another polarizing former Boston star.

In the lineup at designated hitter, Ramirez went 1 for 5 with a sixth-inning single that brought out the boos from Boston fans still smarting over Los Angeles’ victory in Game 7 of the NBA finals Thursday night.

The “Beat L.A.!” chants that permeated the ballpark all week were tepid, and no consolation for the Lakers’ victory that deprived the Celtics of an unprecedented 18th NBA title.

Doubront (1-0) allowed three runs, two off his own error, in the third inning, and had given up just three hits through five before running into more trouble in the sixth.

Ramirez led off with a single to center, and the next three batters also reached safely to make it 10-5 and chase Doubront.

In all, Doubront gave up three earned runs on six hits and two walks, striking out two in five-plus innings.

It was also Drew’s first game against his former team since he controversially opted out of his contract after the 2006 season.

He homered in the first inning — it was ruled a double before umpires consulted the replay — but left in the third when he strained his right hamstring stretching for Ramirez’s line drive.

Drew made the catch, but Darnell McDonald pinch-hit for him in the bottom half.

NOTES: To make room for Doubront on the roster, the Red Sox designated right-hander Boof Bonser for assignment. Doubront was 6-1 with a 2.11 ERA in 12 Double- and Triple-A starts. Bonser spent most of the season on the disabled list with a right groin strain.