I am working on the codespace on some PHP-based code. when I am running this command:
php --ini
Configuration File (php.ini) Path: /opt/php/8.2.4/iniLoaded Configuration File: /opt/php/8.2.4/ini/php.iniScan for additional .ini files in: /opt/php/8.2.4/ini/conf.dAdditional .ini files parsed: (none)
So I install PHP v7.4 by using this command:
sudo apt install php7.4-common
and when I am trying to update-alternatives --config php
it says:
There is only one alternative in link group php (providing /usr/bin/php): /usr/bin/php7.4Nothing to configure.
but my code has some dependencies on php7.4 and still I cannot run my code completly.7the php --ini
command also returns the same result.
the php --version
returns PHP 8.2.4