PHP7 on Virtualmin and Debian 8.6

5 posts / 0 new
Last post
#1 Sun, 02/05/2017 - 10:11
Pierrot

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.

Wed, 02/21/2018 - 09:42
BillClune

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

Sun, 12/02/2018 - 15:02
Zayker

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

Mon, 12/10/2018 - 10:45
Mychael

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.

Tue, 12/11/2018 - 13:53
BillClune

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.

Topic locked