Index.php Text on Login window

Instead of normal log in window i see the index.php as text. this happened after I updated from 13 to 14. Have tried everything a noob can think of. i have reinstalled Apache. Checked that all PHP modules I installed is still there. This is how it looks:

Create a file info.php with the following content in the web root and call its url:
<? phpinfo(); ?>

Most likely this will also be shown as a text. If this is the case PHP is not properly installed or configured.
How the problem can be fixed depends on the way you are using php. The dedicated apache module or php fpm.

I reinstalled all, apache,php,sql, nextcloud etc. It is working now, but I would rather known what was broken…