Long story short, my PHP files show as text in browsers rather than running the PHP script. I am aware that there are questions similar to this but none answer my question. I'm lost.
I have an Apache web server with a Linux OS (Debian). I have installed apache2, php5, libapache2-mod-php5 and php5-common. After every configuration change I've made, I have restarted the Apache web server and there is no difference.
I'm not too sure which configuration files I need to show for you guys to help answer my question. I will edit this question to include the relevant information.
To clarify, my question is: Why do my PHP files show as text in browsers?
P.S. Everything used to work until I completely removed Apache and reinstalled it. Now it's broken.
php.ini
file is large in terms of length and content. Are there any specific sections that are relevant?