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

Hi Richard,

Thanks for taking your time to help me.

It seems from your reply that it’s normal to have 2 versions running simultaneously. As long as this is a normal behavior and does not cause any issues, then I’ll just leave it be. Just wanted to know if this is typical for everyone who uses Virtualmin.

Thanks again.

Joseph

Yes, it’s quite a common thing to have multiple PHP versions, and to select which one is used per-domain. It’s not strictly necessary unless one or another domain needs a certain version of PHP; but it’s not at all unusual, either.

Richard

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