I have looked at many answers online and none of them have worked. I have a .php file with some html in it that runs perfectly on localhost, but when I run it from the website I want to actually have it on, it downloads the file instead of displaying it. I have tried changing my httpd.conf file to include the lines
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
LoadModule php5_module modules/mod_php55.so
but that still didn't change anything.
I am using XAMPP and the download included php so I don't think it is an issue of not having that installed. I am using OS X (El Capitan) if that makes a difference or helps anyone come up with a solution.
Links I've been to as of now:
Apache is downloading php files instead of displaying them https://askubuntu.com/questions/447675/index-php-is-downloading-instead-of-displaying http://ubuntuforums.org/showthread.php?t=2220415