1710159244
Гость
Я пытаюсь переключиться с php [b]7.4[/b] на [b]8.2[/b] с помощью команды[code]sudo update-alternatives --config php[/code] and after doing it and restarting apache2 [code]php -v[/code] shows version [b]8.2[/b], but [code]phpinfo()[/code] shows [b]7.4[/b].
Command [code]sudo a2enmod php8.2[/code] throws "ERROR: Module php8.2 does not exist!"
Command [code]sudo apt-get install libapache2-mod-php8.2[/code] throws: "Unable to locate package libapache2-mod-php8.2"
[img]https://i.stack.imgur.com/LHd0h.png[/img]
[img]https://i.stack.imgur.com/jb8HX.png[/img]
[img]https://i.stack.imgur.com/bdInA.png[/img]
[img]https://i.stack.imgur.com/4boKH.png[/img]
[img]https://i.stack.imgur.com/osPNo.png[/img]
[img]https://i.stack.imgur.com/un9FY.png[/img]
[img]https://i.stack.imgur.com/bOtSo.png[/img]
Источник: [url]https://stackoverflow.com/questions/78140110/how-to-switch-between-php-versions-php-v-shows-8-2-but-phpinfo-shows-7-4-on[/url]