Strange one with PHP Versions

This time i have a strange one:

i Installed Debian 9.4 with PHP 7.0, then added 5.6 for compatibility. Then i had upgrademessages for various packages, and did a bulk update. Which added PHP 7.2 to the system.

Interestingly enough, Webmin shows both PHP 7.x versions, but not 5.6. On the other hand Virtualmin shows all three of them.

I really don't know, what to make out of this.

Do we talk about a bug or is it by design?

Thanks and best

Status: 
Active

Comments

Howdy -- there's likely a PHP 5.x config file in the user's home directory that Virtualmin is picking up on.

What output do you see when going into System Settings -> Re-Check Config though?

Hi Eric,

i did, and it was rolling through, but didn't made a difference in webmin. Checking my /etc/php/apache2 folder, showed me this: 5.6 7.0 7.1 7.2

It keeps creating PHP versions literally over night. I never knew, i would have 7.1 too. From timestamp i assume he created 7.1 together with 7.2 when i ran all the updates, which, virtualmin/webmin told me would be available.

Thanks and best.

For backwards compatibility i wanted to have 5.6 as well as 7.0, those two were intended to be installed on the server,...

Running the "Re-Check Config" wasn't to fix the problem you're experiencing... I was hoping to use the information it outputs to help us understand what PHP versions it is detecting.

That said, I don't believe there are alternate PHP repos for Debian that we officially support, so I don't actually have a recommendation for you on how to get different PHP versions working.

However, we could at least look into why you're seeing the behavior you described.

I ran that again and it said this: The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..

Your system has 31.29 GB of memory, which is at or above the Virtualmin recommended minimum of 256 MB.

BIND DNS server is installed, and the system is configured to use it.

Mail server Postfix is installed and configured.

Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module.

Apache is installed.

The following PHP versions are available : 5.6.35 (/usr/bin/php5.6), 7.0.29 (/usr/bin/php-cgi7.0), 7.2.4 (/usr/bin/php-cgi), 7.0 (mod_php)

(Here it said before, that php.ini files were missing but being created)

PHP-FPM support is available on this system.

Webalizer is installed.

Apache is configured to host SSL websites.

MySQL is installed and running.

ProFTPD is installed.

Logrotate is installed.

SpamAssassin and Procmail are installed and configured for use.

ClamAV is installed and assumed to be running.

Plugin DAV Login is installed OK.

Plugin Protected web directories is installed OK.

Using network interface enp2s0 for virtual IPs.

IPv6 addresses are available, using interface enp2s0.

Default IPv4 address for virtual servers is 111.222.333.444.

Default IPv6 address for virtual servers is 2a01:998:991:484::9,

Both user and group quotas are enabled for home and email directories.

All commands needed to create and restore backups are installed.

The selected package management and update systems are installed OK.

Chroot jails are available on this system

.. your system is ready for use by Virtualmin.