0
votes

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?

1
Did you enable the php module in Apache? Did you register PHP extension to php module?user1433049
I'm not sure I have tried before a while ago, would you be able to explain how to do that please?james clarke
Have a look here: tutorialspoint.com/php7/php7_apache_configuration.htmuser1433049
isn't that for windows?james clarke
nope... I'm not using Apache anymore (using nginx) but i can have a look at a server for the correct things you need. Give me a few secondsuser1433049

1 Answers

0
votes

Solution was to re-install libapache2-mod-php7.0 so that apache modules configuration would be created.