I was having this strange issue where in firefox was showing me phtml files to be saved instead of web pages.
I had reconfigured apache, php and every other package.
I had also checked all the config files which were fine.
I was very troubled and I tried a number of other things. But none of them worked. Then at some thread I read:
"Firefox may have developed some problem in it's profile. Delete current profile and restart it. "
I did it and behold - the phpmyadmin and my local sites started working fine.
Sometimes the wheels are faulty not the engine!!!