Php7.4 installed but not showing under virtualmin6.17

🛈 SYSTEM INFORMATION
OS type and version Debian9
Webmin version 1.984
Virtualmin version 6.17

Hello,

I have installed php7.4 (and also php8). But they do not appear in Virtualmin as possibilities. Even after a “virtualmin check-config”.

Any idea ?

Thank you

apt list --installed

[…]
php-bz2/stretch,now 2:8.1+92+0~20220117.43+debian9~1.gbpe0d14e all [installed]
php-common/stretch,now 2:92+0~20220117.43+debian9~1.gbpe0d14e all [installed,automatic]
php-curl/stretch,now 2:8.1+92+0~20220117.43+debian9~1.gbpe0d14e all [installed]
php-gd/stretch,now 2:8.1+92+0~20220117.43+debian9~1.gbpe0d14e all [installed]
php-gettext/oldoldstable,now 1.0.12-0.1 all [installed,automatic]
php-mbstring/stretch,now 2:8.1+92+0~20220117.43+debian9~1.gbpe0d14e all [installed]
php-mysql/stretch,now 2:8.1+92+0~20220117.43+debian9~1.gbpe0d14e all [installed]
php-pear/stretch,now 1:1.10.12+submodules+notgz+20210212-1+0~20210228.21+debian9~1.gbpf2b98f all [installed]
php-php-gettext/oldoldstable,now 1.0.12-0.1 all [installed,automatic]
php-phpseclib/oldoldstable,now 2.0.4-1 all [installed,automatic]
php-tcpdf/oldoldstable,now 6.2.12+dfsg2-1 all [installed,automatic]
php-xml/stretch,now 2:8.1+92+0~20220117.43+debian9~1.gbpe0d14e all [installed]
php-zip/stretch,now 2:8.1+92+0~20220117.43+debian9~1.gbpe0d14e all [installed]
php5/now 5.6.40+dfsg-0+deb8u7 all [installed,local]
php5-cgi/now 5.6.40+dfsg-0+deb8u7 amd64 [installed,local]
php5-cli/now 5.6.40+dfsg-0+deb8u7 amd64 [installed,local]
php5-common/now 5.6.40+dfsg-0+deb8u7 amd64 [installed,local]
php5-curl/now 5.6.40+dfsg-0+deb8u7 amd64 [installed,local]
php5-gd/now 5.6.40+dfsg-0+deb8u7 amd64 [installed,local]
php5-json/now 1.3.6-1 amd64 [installed,local]
php5-mcrypt/now 5.6.40+dfsg-0+deb8u7 amd64 [installed,local]
php5-mysql/now 5.6.40+dfsg-0+deb8u7 amd64 [installed,local]
php5-xcache/now 3.2.0-1 amd64 [installed,local]
php7.1/stretch,now 7.1.33-44+0~20211119.61+debian9~1.gbp448fbe all [installed]
php7.1-cgi/stretch,now 7.1.33-44+0~20211119.61+debian9~1.gbp448fbe amd64 [installed]
php7.1-cli/stretch,now 7.1.33-44+0~20211119.61+debian9~1.gbp448fbe amd64 [installed,automatic]
php7.1-common/stretch,now 7.1.33-44+0~20211119.61+debian9~1.gbp448fbe amd64 [installed,automatic]
php7.1-curl/stretch,now 7.1.33-44+0~20211119.61+debian9~1.gbp448fbe amd64 [installed]
php7.1-json/stretch,now 7.1.33-44+0~20211119.61+debian9~1.gbp448fbe amd64 [installed,automatic]
php7.1-mysql/stretch,now 7.1.33-44+0~20211119.61+debian9~1.gbp448fbe amd64 [installed]
php7.1-opcache/stretch,now 7.1.33-44+0~20211119.61+debian9~1.gbp448fbe amd64 [installed,automatic]
php7.1-readline/stretch,now 7.1.33-44+0~20211119.61+debian9~1.gbp448fbe amd64 [installed,automatic]
php7.3-bz2/stretch,now 7.3.33-1+0~20211119.91+debian9~1.gbp618351 amd64 [installed]
php7.3-common/stretch,now 7.3.33-1+0~20211119.91+debian9~1.gbp618351 amd64 [installed,automatic]
php7.3-curl/stretch,now 7.3.33-1+0~20211119.91+debian9~1.gbp618351 amd64 [installed,automatic]
php7.3-gd/stretch,now 7.3.33-1+0~20211119.91+debian9~1.gbp618351 amd64 [installed]
php7.3-mbstring/stretch,now 7.3.33-1+0~20211119.91+debian9~1.gbp618351 amd64 [installed,automatic]
php7.3-mysql/stretch,now 7.3.33-1+0~20211119.91+debian9~1.gbp618351 amd64 [installed]
php7.3-xml/stretch,now 7.3.33-1+0~20211119.91+debian9~1.gbp618351 amd64 [installed]
php7.3-zip/stretch,now 7.3.33-1+0~20211119.91+debian9~1.gbp618351 amd64 [installed]
php7.4/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 all [installed]
php7.4-bz2/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed]
php7.4-cli/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed,automatic]
php7.4-common/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed,automatic]
php7.4-curl/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed,automatic]
php7.4-gd/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed]
php7.4-json/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed,automatic]
php7.4-mbstring/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed]
php7.4-mysql/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed]
php7.4-opcache/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed,automatic]
php7.4-readline/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed,automatic]
php7.4-xml/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed]
php7.4-zip/stretch,now 7.4.27-1+0~20211220.57+debian9~1.gbp832572 amd64 [installed]
php8.0/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f all [installed]
php8.0-bz2/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,automatic]
php8.0-cli/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,automatic]
php8.0-common/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,automatic]
php8.0-curl/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,automatic]
php8.0-gd/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,auto-removable]
php8.0-mbstring/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,automatic]
php8.0-mysql/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,auto-removable]
php8.0-opcache/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,automatic]
php8.0-readline/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,automatic]
php8.0-xml/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,auto-removable]
php8.0-zip/stretch,now 8.0.15-1+0~20220129.29+debian9~1.gbpc7cb1f amd64 [installed,auto-removable]
php8.1-bz2/stretch,now 8.1.2-1+0~20220127.12+debian9~1.gbpe46588 amd64 [installed,automatic]
php8.1-common/stretch,now 8.1.2-1+0~20220127.12+debian9~1.gbpe46588 amd64 [installed,automatic]
php8.1-curl/stretch,now 8.1.2-1+0~20220127.12+debian9~1.gbpe46588 amd64 [installed,automatic]
php8.1-gd/stretch,now 8.1.2-1+0~20220127.12+debian9~1.gbpe46588 amd64 [installed,automatic]
php8.1-mbstring/stretch,now 8.1.2-1+0~20220127.12+debian9~1.gbpe46588 amd64 [installed,automatic]
php8.1-mysql/stretch,now 8.1.2-1+0~20220127.12+debian9~1.gbpe46588 amd64 [installed,automatic]
php8.1-xml/stretch,now 8.1.2-1+0~20220127.12+debian9~1.gbpe46588 amd64 [installed,automatic]
php8.1-zip/stretch,now 8.1.2-1+0~20220127.12+debian9~1.gbpe46588 amd64 [installed,automatic]
[…]

virtualmin check-config

The following PHP versions are available : 5.6.40 (/usr/bin/php5-cgi), 7.1.33 (/usr/bin/php-cgi7.1), 5.6 (mod_php)

Hello and welcome to the community, @antoineschmitt

Two important things:

  1. get rid of mod_php
  2. use the official documentation at Multiple PHP Versions – Virtualmin

Hello,
thank you for your answer.

I had followed exactly the official documentation.
How do I “get rid” of mod_php (none of my virtual servers use it) ?

Thank you

Not possible. The official documentation does not tell you to install Mod PHP. It tells you to install an UNMODIFIED OS. It tells you flat out:

Do not pre-install or pre-configure any additional packages on your OS.

You then run this:
<wget https://software.virtualmin.com/gpl/scripts/install.sh>

And then this:
<sudo /bin/sh install.sh>

That’s it. If you did anything other than that, you messed up.

:wink: Actually, webmin/virtualmin was already installed on this system when I purchased this server (10 years ago), so I guess mod_php was preinstalled. I then upgraded to php7.1, like 2 years ago, which worked. But now when I try to upgrade to php7.4, it does not appear. Very strange.

One of the last thread I read on this forum was related to zend or you can call it laminas PHP. I love seeing such healthy forums relates to PHP and stuff that always came in handy while writing a piece. I see that Laminas framework works on MVC architecture that supports the web designers and looking forward what more it can bring to our community. Thanks for sharing!

none php7.4-cgi or php8.0-cgi installed… nor -fpm … nor mod-php in that versions… so virtualmin correctly doesn’t find it… install those too and do a recheck afterwards.

Thanks ! That did it.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.