Media playback is unsupported on your device Media caption Rory Cellan-Jones, BBC Technology Correspondent: "What a soap opera we've seen at Yahoo"

The chief executive of tech firm Yahoo has stepped down amid accusations he included a fake computer science degree on his CV.

Scott Thompson was replaced by Yahoo's global media head Ross Levinsohn.

Yahoo shares rose 1.7% on Monday morning as news of the changes hit the trading floor.

The firm is also reportedly close to agreeing a truce with activist shareholder Daniel Loeb, who discovered Mr Thompson's mistake.

Mr Loeb, a hedge fund manager who lobbied for Mr Thompson's dismissal, is set to be appointed a company director.

He will also be able to appoint two other new directors, while Yahoo has named Fred Amoroso as the new chairman of its board.

On Monday the Wall Street Journal reported that Mr Thompson, 54, told Yahoo's board late last week he had been diagnosed with thyroid cancer.

Mr Thompson was diagnosed in recent days and is due to begin treatment, the newspaper said, adding that discovery of the illness had influenced Mr Thompson's decision to resign.

No confirmation of the report was available.

Cost-cutting

Yahoo has already acknowledged that Mr Thompson, who took up his post in January, does not have a computer science degree.

When the news emerged Yahoo initially defended its chief executive, calling the discrepancy on his resume an "inadvertent error". But it then came under mounting pressure from shareholders, employees and corporate governance experts to investigate the matter.

Mr Thompson's exit comes amid broader reorganisation within the troubled internet giant, which has seen four full-time chief executives over the last five years.

The chairman of the board, Roy Bostock, and four other directors are leaving the company immediately. All of them had approved the hiring of Mr Thompson.

In addition to the three seats allocated to Mr Loeb and his board appointees, Michael Wolf, a former executive at MTV Networks, and Harry Wilson, a restructuring expert, are to join the board.

Mr Levinsohn, who takes over as interim head of Yahoo, acknowledged the disruption in an internal letter to employees.

"This may seem like a great deal of news to digest, but as you are all keenly aware, Yahoo is a dynamic, global company in a dynamic, global industry, so change - sometimes unexpected and sometimes at lightning speed - is something we will continue to live with and something we should embrace," he wrote.

Upheaval

Mr Levinsohn is expected to address Yahoo employees at a meeting on Monday afternoon.

In April the company announced plans to make 2,000 employees redundant, a cutback of about 14% of staff, in an effort to save $375m (£233m) a year.

Mr Thompson also had plans to shut down or sell off about 50 of Yahoo's products and services.

Before joining Yahoo Mr Thompson served as president of online payments firm PayPal from 2008.

He took over as chief executive from Tim Morse, who had held the Yahoo role on an interim basis after Carol Bartz was sacked in September 2011.

Besides its search engine, Yahoo's key products include Yahoo News, photo-sharing site Flickr and a webmail platform.

But the company has struggled to match the advertising revenue generated by rivals Google and Facebook.

Yahoo's stock has languished since it passed up a $44bn takeover bid from Microsoft in 2008.