PHP Version won't change

SYSTEM INFORMATION
Ubuntu 18.04.6 LTS
Webmin version 2.105
Usermin version 2.005
Virtualmin version 7.9.0

My PHP version won’t change in virtual min therefore plugins in wordpress aren’t working. I have some plugins that require 7.4 PHP, the server has been updated to 7.4 see php-v output here:
php -v
PHP 7.4.33-SergeyD/6.1 (cli) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

However inside virtual min it still reads PHP versions 7.2.24.

So plugins in wordpress that have been created via the virtual min system are still reading 7.2, I’ve tried everything please advise how to fix this.

Thank you,

System Settings->Re-Check Configuration

Then set the PHP version for the domain.

Php -v issued on the command line will return the cli version of php which could be different to the version running on your web server . Check the domains php options in virtualmin to ensure everything is correct. It may be a case of disabling php on the domain and re enabling php with the correct version. But tbf you have not explained how you changed the php version in the first place, so this is just a guess

1 Like

I’m looking for a place to do this, I did re-check configuration but I’m not seeing the option anywhere to set the PHP version for the domain. Still looking…

I found some info here: https://www.virtualmin.com/documentation/web/multiplephp/

But there is no dropdown to change PHP versions. On my UI

Show us the output of Re-Check Configuration. It should show where it detects the other version(s).

Output from re-check:

Checking Configuration

The status of your system is being checked to ensure that all enabled features are available and properly configured …

Your system has 15.66 GiB of memory, which is at or above the Virtualmin recommended minimum of 256 MiB

BIND DNS server is installed

Your Postfix configuration is missing the system’s mail hostname from the mydestination line, which will cause mail to bounce. The current value is localhost, localhost.localdomain

… your system is not ready for use by Virtualmin

I think that tells me you didn’t install Virtualmin using the install script. All bets are off. We have no idea what’s going on on your system.

And, obviously if Re-Check Configuration won’t complete, Virtualmin has no idea what PHP versions you have on your system. You’ll need to disable mail features or fix the problem it has reported.

Also, Ubuntu 18.04 has been EOL for a while. It’s pretty dangerous to run it on the open internet.

Thank you, I will go ahead and upgrade Ubuntu.

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