I have a virtual machine running Linux Mint 18.1 and installing the basic LAMP (php7) stack but when I try and go to my localhost it renders the page with the filename (not even the code) outputted to the screen.Here's what I've tried so far:a2dismod mpm-event && a2ensite mpm-preforkremoving all traces of php (sudo apt-get remove php*) and then reinstalling (sudo apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0)My apache.conf is the default apache file other than this addition:<IfModule php7_module>    AddType application/x-httpd-php .php    AddType application/x-httpd-php-source .phps    <IfModule dir_module>        DirectoryIndex index.html index.php    </IfModule></IfModule><FilesMatch \.php$>    SetHandler application x-httpd-php</FilesMatch>my site.conf file:<VirtualHost *:80>    ServerName site.local    DocumentRoot /var/www/www    ErrorLog /var/log/apache2/site.local-error_log    CustomLog /var/log/apache2/site-local-access_log common    <Directory /var/www/www>        Options Indexes FollowSymLinks        AllowOverride All        Order allow,deny        Require all granted        Allow from all    </Directory></VirtualHost>doing php -i / php -v both return outputs so I'm not sure where I'm failing. Pretty sure PHP5.6 -> php7 they've changed some conf stuff because this used to be easy as anythingMy permissions:Directories - 755 (done by sudo find . -type d -exec chmod 755 {} \;)Files       - 644 (done by sudo find . -type f -exec chmod 644 {} \;)owners:myuser:webusrUPDATE #1it seems to be a weird issue - I replaced the contents of index.php (a header('Location: /page/to/login) inside) with phpinfo(); and refreshing the page shows a phpinfo page - so PHP is definitely working. Is there an apache conf setting I need to set up for MVC structures to work properly? I have symlinks enabled (Options Indexes FollowSymLinks) but not quite workingThanks
Linux Mint 17 - Localhost renders filename instead of content
linux mint;apache httpd;php7