It seems that I have everything what is needed to install php module for Apache, but
it still wants to download a file when I type /localhost/testphp on the localhost.
It works though when called from a different pc in my local network
I did everything what is needed
I enabled php5 module:
sudo etc/init.d/apache2 force-reload
DirectoryIndex index.html index.php main.php