PHP not running after upgrading to Catalina

Solution 1:

Found an answer that worked:

# added this to made php render
<IfModule php7_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    <IfModule dir_module>
        DirectoryIndex index.html index.php
    </IfModule>
</IfModule>