PHP works only as 5.6 version

Please help me to resolve a problem.
I use Debian 9 with PHP repositories and GPL Virtualmin to host several webpages and mails.
After I had installed Debian update to Apache2 2.4.25-3+deb9u3 and around that time my Multi PHP capability failed. Now regardless of PHP execution mode phpinfo always gives:
Server API FPM/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php/5.6/fpm
Loaded Configuration File /etc/php/5.6/fpm/php.ini
Scan this dir for additional .ini files /etc/php/5.6/fpm/conf.d

Even if i choose FCGId as version 7.1 it runs as mentioned 5.6.
I need php5.6 (execution mode doesn’t matter) for one domain. And php 7.1 for the rest. (Maybe sometime in near future update to php7.2 for one or two websites)
I tried to purge all php packets and reinstall It again. What else should I do?
Thank you in advance :slight_smile:

Hi there

I have just installed Virtualmin GPL on Debian 9 using the recommended install script and it ships with PHP Version 7.0.19-1

I have that working with PHP 5.6 using as you did

Hope this helps in some way


Hi, if you installed debian 9 right a way, there should and it will not be older obsolete php installed. What I would suggest is to check if all your php scripts support php7 and if they do not and you must use them - simplest solution would be to reinstall your server with debian 8, save it for backup and then do distro update. - just make sure those your php apps supports php7+

edit im on debian 9 from debian 8 - have both versions and it works awesomely