PHP7 on Virtualmin and Debian 8.6

Hello,

On a fresh VPS with debian 8.6 and Webmin I installed PHP7 using the following instructions: https://computerz.solutions/debian-8-installer-php7/ (sorry it’s in french but I guess evrybody will be able to read instructions …)

I then added some lines in Virtualmin -> System settings -> Virtualmin Configuration -> PHP options ->
/etc/php
/etc/php/7.0
/etc/php/7.0/apache2
/etc/php/7.0/fpm
/etc/php/7.0/cli

I also choosed to execute as fast-cgi.

When I create a virtual server I can choose between PHP 5.6 and PHP 7.0 (Virtualmin -> Server configuration -> PHP Versions) so eveything seems to be fine. However when reaching a file with only phpinfo(), I get a 500 error when choosing php 7.0 … however it works with PHP 5.6 …

I read somewhere that I should eventually add symbolic links to PHP7 … not sure about that as Virtualmin seems to see PHP7.

Any idea of where I should look ?
Pierre.

Did you find a solution for this as i have now stumbled into this

Hi Pierrot and BillClune, Did you find a solution? I’m in the same trouble! Thank you in advance

Hi,

the same problem occurs with the difference that when I run everything seems fine, but it does not allow me to choose between PHP 5.6 and PHP 7.0, the selection is almost automatic by PHP 5.6. I do not know how to fix it.

No solution found here…
I even upgraded from 8.* to 9.* on debian, it just wont run php 7.
My solution is a new VM of CentOS and migrate my sites, not a solution but a work around.