Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

ubuntu change php version

sudo a2dismod php7.1
sudo a2enmod php5.6
sudo service apache2 restart
 #command Line
 sudo update-alternatives --set php /usr/bin/php5.6
 
$ 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 www.folkstalk.com #
 
PREVIOUS NEXT
Tagged: #ubuntu #change #php #version
ADD COMMENT
Topic
Name
3+6 =