-
Notifications
You must be signed in to change notification settings - Fork 0
Devops: How to swith PHP versions
Oscar Fabiano edited this page Jul 6, 2021
·
1 revision
sudo a2dismod php[x.y]
sudo a2enmod php[z.w]
sudo service apache2 restart
sudo update-alternatives --set php /usr/bin/php[z.w]
sudo update-alternatives --set phar /usr/bin/phar[z.w]
sudo update-alternatives --set phar.phar /usr/bin/phar.phar[z.w]
[x.y] = replace with the version to disabled = e.g. 5.6
[z.w] = replace with the version to enabled = e.g. 7.4