I have noted that this question has been asked before, but none of the solutions offered have fixed my problem.
I have MAMP PRO. I sat down to work and when I typed my localhost URL into chrome, it just downloads the file rather than opens it in the browser. Others have suggested this is caching problem, but I have cleared the chrome cache. I have stopped and restarted apache and MySQL with no effect.
In addition to this (and possibly related), my databases have reverted to a version from a week ago.
Any advice on this problem, bearing in mind that clearing the cache had no effect, would be helpful...
EDIT:
So after playing around....a test.php file runs fine from 127.0.0.1/test.php but if I run.......127.0.0.1/breathe/index.php (which is my site) no joy, it just downloads it. If I shift all my directory straight into htdocs it works....
This is not ideal....but will do for now. But I want to know why this is happening. I need to understand this...so I can deal with further issues.