I am running Ubuntu 18.04.4 with Apache2 and php7.4.4 in a Oracle VirtualBox to try out some php pages someone made for me. Unfortuanly my Firefox somehow always wants to download index.php instead of running it.
I tried to solved the problem already according to other threats and help pages:
- I added this to
/etc/apache2/apache2.conf
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
I disabled mpm_event and enabled mpm_prefork
Restarted apache --> php is still not working
Tried to install libapache2-mod-php7.4 / phpmyadmin
Restart apache again
The problem persists, I wonder if something with apache2.conf is still not ok?