Dolibarr broke down after update 19 o 20

Our Dolibarr runs on an Ubuntu server. I updated Ubuntu this morning to latest version, and after that I updated Dolibarr using dolideb. Old version was 19.0.0.1.

However, after updates Dolibarr fails to execute any php files, and they show up as text instead. I created phpinfo() file that was placed under the /var/www/html/, and that works correctly so php should work.

How can I fix this? Should I change something with Apache or php, or is this some authorisation problem?

Nevermind, problem is now solved. Since the server is only for Dolibarr, I fixed it now by changing the document root of Apache to the /usr/share/dolibarr/htdocs/. Hopefully this helps someone encountering the same issue!