Samoa has begun a two-day lockdown to carry out an unprecedented mass vaccination drive aimed at containing a devastating measles epidemic that has killed dozens of children in the Pacific island country.

As the death toll climbed to 62, officials ordered all businesses and non-essential government services to close, halted inter-island ferries and told motorists to stay off the roads.

Residents were advised to obey a dawn-to-dusk curfew, staying in their homes and displaying a red flag if any occupants were not yet immunised.

Hundreds of vaccination teams, including public servants drafted in for the operation, have been dispatched across the nation of 200,000.

They plan to go door-to-door in villages and towns to administer mandatory vaccinations in red-flagged houses.

"It's very, very quiet out here. I can just hear a few barking dogs. The streets are empty. There are no cars," according to UNICEF's Pacific islands chief Sheldon Yett.

"People are staying at home waiting for the vaccination campaign. The teams are getting their supplies together and getting ready to go out."

The operation, carried out under emergency powers invoked as the epidemic took hold last month, is a desperate bid to halt measles infection rates that have been inexorably rising since mid-October, with most of the victims young children.

"I've seen mass mobilisation campaigns before, but not over an entire country like this," Mr Yett said.

"That's what we're doing right now. This entire country is being vaccinated."

'Incredibly irresponsible' campaign to blame for epidemic

Immunisation rates in Samoa dropped steeply to just 30% before the outbreak, the World Health Organisation said, blaming an anti-vaccine messaging campaign.

Two babies died after receiving measles vaccination shots last year, which lead to the temporary suspension of the country's immunisation programme and dented parents' trust in the vaccine.

It was later found the deaths were caused when other medicines were incorrectly administered.

Rates of 90% are international best practice.

Immunisation rates in Pacific island nations Tonga and Fiji are at around 90%, and their measles outbreaks have been far milder.

Mr Yett said social media had been used to spread anti-vaccination misinformation in Samoa and the online giants running the platforms needed to clamp down on such "incredibly irresponsible" material.

"It's quite clear that they have a corporate responsibility to step up to the plate and make sure that populations, particularly vulnerable populations, get accurate information that's going to keep children alive," he said.

Samoa's immunisation rate has risen to 55% over the past fortnight and Mr Yett said this week's two-day drive aimed to push it above 90%, which should help curb the current outbreak and stop future epidemics.

'Vaccination the only cure' - prime minister

Even Prime Minister Tuilaepa Sailele Malielegaoi's residence had a red flag fluttering outside, with the leader saying his nephew had recently arrived from Australia and needed a measles shot.

Mr Malielegaoi said he was angered by anecdotal reports that some anti-vaccination parents were encouraging their children to hide from the teams to avoid the mandatory injection.

"The only cure for this is vaccination ... having your children vaccinated is the only way," he said.

Mr Malielegaoi rejected accusations that his government had contributed to the crisis by not acting more decisively to address the long-term decline in immunisation rates.

"I think you're talking to the wrong people, we did it many, many times," he told reporters.

Children are the most vulnerable to measles, which typically causes a rash and fever but can also lead to brain damage and death.

The latest figures show that 54 of the 62 dead were aged four or less and infants account for most of the 4,217 cases recorded since the outbreak began in mid-October.

A further 19 children are critically ill in hospital.

Samoa has received aid to combat the crisis from Australia, New Zealand, France, Britain, China, Norway, Japan, American Samoa, the United States and the United Nations.

But efforts so far have failed to stop infection spreading, prompting this week's drastic escalation in the immunisation campaign.

Samoans can expect no immediate relief even if the national shutdown succeeds in boosting vaccination rates as the injection typically takes 10-14 days to become effective.

There have also been measles epidemics in neighbouring Fiji and Tonga, but higher immunisation rates mean they have been more easily contained, with no fatalities.