Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

change the php version in linux

sudo update-alternatives --set php /usr/bin/php7.2
sudo update-alternatives --set phar /usr/bin/phar7.2
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.2
sudo update-alternatives --set phpize /usr/bin/phpize7.2
sudo update-alternatives --set php-config /usr/bin/php-config7.2
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #php #version #linux
ADD COMMENT
Topic
Name
9+4 =