![]() ![]() Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies Now, again verify the currently active PHP as shown below. ![]() Update-alternatives: using /usr/bin/phar.phar7.0 to provide /usr/bin/phar.phar (phar.phar) in manual mode There are 2 choices for the alternative phar.phar (providing /usr/bin/phar.phar). Sudo update-alternatives -config phar.phar Update-alternatives: using /usr/bin/phar7.0 to provide /usr/bin/phar (phar) in manual mode There are 2 choices for the alternative phar (providing /usr/bin/phar). Update-alternatives: using /usr/bin/php7.0 to provide /usr/bin/php (php) in manual mode Press to keep the current choice, or type selection number: 1 There are 2 choices for the alternative php (providing /usr/bin/php). Now we can switch among PHP 7.0 or PHP 8.0 using the commands as shown below. Sudo update-alternatives -set phar.phar /usr/bin/phar.phar8.0 Sudo update-alternatives -set phar /usr/bin/phar8.0 Sudo update-alternatives -set php /usr/bin/php8.0 Sudo update-alternatives -set phar.phar /usr/bin/phar.phar7.0 Sudo update-alternatives -set phar /usr/bin/phar7.0 Sudo update-alternatives -set php /usr/bin/php7.0 We can configure multiple versions of PHP installed on Ubuntu 20.04 LTS using the commands as shown below. With Zend OPcache v8.0.13, Copyright (c), by Zend Technologies Zend Engine v4.0.13, Copyright (c) Zend Technologies Verify the currently active PHP as shown below. ![]() You can follow How To Install Multiple Versions Of PHP On Ubuntu 20.04 LTS. The previous tutorial provided the steps required to install multiple PHP versions on Ubuntu 20.04 LTS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |