Ubuntu VirtualMin - Unable to detect correct PhP version
P粉647449444
2023-08-26 16:04:22
<p>I installed a fresh Ubuntu server with Virtualmin. It automatically installed Php version 7.2, but I need 7.4. So I installed version 7.4. When I check the version using the -v command, it shows 7.4. However, Webmin and WordPress still only see and use version 7.2. I tried uninstalling version 7.2 but the command failed and told me the module doesn't exist, but I can see it in the list of installed versions in ssh. When I try to change the php version, it doesn't show up as an option in Virtualmin, only the 7.2 version. </p>
<p>Any suggestions on how to resolve this issue? I'm confused. Thanks! </p>
You can try the following commands:
For more detailed information, you can also refer to the following link:
https://hackthestuff.com/article/how-to-change-php-version-from-command-line-in-ubuntu