Installing/upgrading to PHP7

Hello everybody, I successfully upgraded to Dolibarr 4.0.2 from 3.9.2, everything is working fine as of now.
The only problem I got was that, in the import dialog, I couldn’t get after the selection of the import type as the option to choose the filetype was not shown. In the error log from Nginx I found:

2016/11/17 15:26:51 [error] 31971#31971: *2091 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PHPExcel_Exception: Multibyte function overloading in PHP must be disabled for string functions (2). in /home/mysite/sites/dolibarr/htdocs/includes/phpoffice/phpexcel/Classes/PHPExcel/Autoloader.php:34
Stack trace:
#0 /home/mysite/sites/dolibarr/htdocs/includes/phpoffice/phpexcel/Classes/PHPExcel.php(32): require()
#1 /home/mysite/sites/dolibarr/htdocs/core/modules/import/import_xlsx.modules.php(83): require_once('/home/dolimagaz...')
#2 /home/mysite/sites/dolibarr/htdocs/core/modules/import/modules_import.php(164): Importxlsx->__construct(Object(DoliDBMysqli), '')
#3 /home/mysite/sites/dolibarr/htdocs/imports/import.php(449): ModeleImports->liste_modeles(Object(DoliDBMysqli))
#4 {main}
  thrown in /home/mysite/sites/dolibarr/htdocs/includes/phpoffice/phpexcel/Classes/PHPExcel/Autoloader.php on line 34" while reading upstream, client: xxx.xxx.xxx.xxx., server: mysi.te, request: "GET /imports/import.php?step=2&datatoimport=produit_1&excludefirstline=1&separator=%2C&enclosure=%22 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm/dolibarrmysite.sock:", host: "mysi.te", referrer: "http://mysi.te/imports/import.php?leftmenu=import"

I managed to solve as for this answer on stackoverflow.

I hope this can be useful to somebody
Thank you all for this nice software

Sorry forgot to mention that before I was running Dolibarr 3.9.2 on Ubuntu 16.04 with PHP7 without any issue.
I have to make this a reply as I cannot edit my own post

I also had to install

php7.0-xml
So the import could work again, this is because I was lacking utf8 support and receiving

2016/11/17 18:25:21 [error] 31971#31971: *2952 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function utf8_encode() in /home/mysite/sites/do
libarr/htdocs/core/modules/import/import_csv.modules.php:237