Don't want multiple PHP versions to run

SYSTEM INFORMATION
OS type and version: CentOS 7.9.2009
Webmin version: 1.981
Virtualmin version: 6.16
Related products version: Nginx 1.20.1

Hi,

I’ve set all virtual servers to default to PHP 7.4. However, I see that they have both 7.2 and 7.4 running simultaneously, thus wasting resources.

Must I delete/remove 7.2 or is there a setting I missed in order to only run 7.4?

Thanks in advance!

Where do you “see both running”?

Hi Joe.

Thanks for helping me.

I see it under Memory of Running Processes.

When I sort it by Owner, I see the same owner having 7.2 and 7.4 running. For example, these are from the same owner:

/opt/rh/rh-php72/root/usr/bin/php-cgi -b /var/php-nginx/158817213828616.sock/soc …
/opt/rh/rh-php72/root/usr/bin/php-cgi -b /var/php-nginx/158817213828616.sock/soc …
/opt/rh/rh-php72/root/usr/bin/php-cgi -b /var/php-nginx/158817213828616.sock/soc …
/opt/rh/rh-php72/root/usr/bin/php-cgi -b /var/php-nginx/158817213828616.sock/soc …
/opt/rh/rh-php72/root/usr/bin/php-cgi -b /var/php-nginx/158817213828616.sock/soc …
/bin/php74-cgi -b /var/php-nginx/158817213828616.sock/socket
/bin/php74-cgi -b /var/php-nginx/158817213828616.sock/socket
/bin/php74-cgi -b /var/php-nginx/158817213828616.sock/socket
/bin/php74-cgi -b /var/php-nginx/158817213828616.sock/socket
/bin/php74-cgi -b /var/php-nginx/158817213828616.sock/socket
/usr/bin/perl /usr/bin/php-loop.pl /bin/php74-cgi -b /var/php-nginx/158817213828 …
/usr/bin/perl /usr/bin/php-loop.pl /opt/rh/rh-php72/root/usr/bin/php-cgi -b /var …

Does anyone have any insights into this? Thanks!

You can disable from starting if you’re sure you don’t need it. The easiest way would be in Webmin -> System -> Bootup and Shutdown. I wouldn’t recommend it without some clear reason to do so (which is kind of hard to come up with); but it’s your server, not mine.

Richard