I'm running raspbian and am trying to use php7.0 with my apache web server. I have tried everything to install it to no avail, the PHP code simply doesn't run. I have php7.0 installed with
sudo apt-get install apache2 php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-xmlrpc libapache2-mod-php7.0
I have configured apache to open index.php and it does, however, the code is simply displayed in the browser and doesn't run. Can anyone help, please?