This file contains 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 | |
echo "changeing from $2 to $4" | |
a2dismod php$2 | |
a2enmod php$4 | |
systemctl restart apache2 | |
update-alternatives --set php /usr/bin/php$4 | |
update-alternatives --set php /usr/bin/phar$4 | |
update-alternatives --set phar.phar /usr/bin/phar.phar$4 |
OlderNewer