After the upgrade to Ubuntu 16.04, php files in the public_html directory are not processed anymore by apache2. If I browse some page http://localhost/~myusername/index.php, the php code is rendered as plain text.
It might be related to the upgrade to php7.0, which (I think) replaced php5 in Ubuntu 16.04.
I already tried what is suggested in the following:
Any idea about what might be wrong?