Created
September 4, 2019 13:08
-
-
Save kuntashov/69d6e9bfb779c8c5f1356409730b0a8f to your computer and use it in GitHub Desktop.
Переключить PHP 5.6 <=> 7.x на локальной машине
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# apache | |
sudo a2dismod php7.2 | |
sudo a2enmod php5.6 | |
sudo service apache2 restart | |
# cli | |
sudo update-alternatives --set php /usr/bin/php5.6 | |
sudo update-alternatives --set phar /usr/bin/phar5.6 | |
sudo update-alternatives --set phar.phar /usr/bin/phar.phar5.6 | |
sudo update-alternatives --set phpize /usr/bin/phpize5.6 | |
sudo update-alternatives --set php-config /usr/bin/php-config5.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment