Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

switch php version ubuntu

$ sudo update-alternatives --set php /usr/bin/php7.1
$ sudo update-alternatives --set phar /usr/bin/phar7.1
$ sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #switch #php #version #ubuntu
ADD COMMENT
Topic
Name
9+7 =