Chrome downloads php file instead of running
So I have a website hosted on site5, it works fine, but after I sftp into it through nautilus, instead of viewing a page (having the server run the php file) when I open it in Chrome, it instead is downloading it. I know it's not a configuration problem on the server end as I can view it on another computer or on my phone just fine. And it only happens after I have sftp'd into the server. Most likely it is some sort of caching thing as even after I disconnect it does it. The only work around I have found is to clear all browsing data from chrome, delete all the downloaded files from my download folder, and restart the computer. If anyone knows a way to stop this behavior I would really appreciate hearing it.