PHP Multiple version - configuration

SYSTEM INFORMATION
OS type and version debian 12 latest
Webmin version 2.202
Virtualmin version 7.30.4 Pro
Webserver version apache
Related packages PHP

Hello All,

I followed this guide:

I now have multiple php versions available which is exactly what i want.
I can choose from php 8.2 and php 8.3. But now when i do apt-get upgrade i get the following message:

root@srv1:~# apt-get upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following packages were automatically installed and are no longer required:
php8.2-imagick php8.2-imap php8.2-intl php8.2-mysql php8.2-redis php8.2-soap php8.2-ssh2 php8.2-zip
Use ‘apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I can surely NOT remove them right? Else I would damage my php8.2 installation. Or can I remove them? I’m not sure. Thank you for your reply.

php8.2and8.3

Also I had the ioncube loader installed on php version 8.2. I now get the error: Script error: the ionCube Loader for PHP needs to be installed.

I am still configured on php 8.2 and not 8.3 Why am I getting the error?
It looks like adding the 8.3 php version stopped the ioncube loader for 8.2

root@srv1:~# php -v
PHP 8.3.15 (cli) (built: Dec 24 2024 06:13:33) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.15, Copyright (c) Zend Technologies
with Zend OPcache v8.3.15, Copyright (c), by Zend Technologies

Only showing 8.3.15 not 8.2. And no ioncube loader anymore.

Should I now install the ioncube loader for 8.3?

When you installed php 8 3 it became the default php version which is what is used on the cli.

Ioncube needs to be installed for 8.3 if you want to use it on that version of PHP. It will still be installed for your other version of PHP .

This have a install wizard on there site.

1 Like

Thank you for your reply, i configured ioncube for 8.3 now as well. All seems to be fine now.

Thank you for your reply. I configured ioncube for 8.3 now as well. Seems to be ok now.

1 Like