That will free the disk space as well as system security. If any PHP version is no more required, can be removed from the system. Selection number 4 set PHP 8.1 as the default PHP version for the command line. The above output shows all the installed PHP versions on your system. Press to keep the current choice, or type selection number: 4 sudo update-alternatives -config php There are 4 choices for the alternative php (providing /usr/bin/php). Use this tutorial to read more details about switching PHP version for CLI and Apache. You can use the update-alternatives command to set the default PHP version. ![]() With Zend OPcache v7.4.29, Copyright (c), by Zend Technologies Zend Engine v3.4.0, Copyright (c) Zend Technologies To view the current active PHP version run the following command: php -v Users have installed different PHP version, need to replace 7.4 with required PHP versions. Replace with the extension you want to install, if you want to add multiple extensions then include them in braces, I am going to install “php-mbstring, php-mysql, php-xml, and php-curl” by running the below-mentioned command: sudo apt install php7.4-mysql php7.4-mbstring php7.4-xml php7.4-curl
0 Comments
Leave a Reply. |