Ubuntu VirtualMin - Unable to detect correct PhP version
P粉647449444
P粉647449444 2023-08-26 16:04:22
0
1
455
<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>
P粉647449444
P粉647449444

reply all(1)
P粉821231319

You can try the following commands:

sudo update-alternatives --set php /usr/bin/php7.4

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!