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!

Fix Apache PHP Handling: Ensure libapache2-mod-php is installed/enabled via sudo a2enmod php8.x (replace with your PHP version) and restart Apache (systemctl restart apache2).

Check File Permissions: Verify Dolibarr files in /var/www/html/ have proper ownership (chown -R www-data:www-data /var/www/html/dolibarr).

Confirm PHP Config: Ensure .php files are (processed){www.codehyper.com.au} by Apache (check <FilesMatch> directives in /etc/apache2/mods-available/php*.conf).