Skip to content

Instantly share code, notes, and snippets.

@raulneis
Created May 11, 2017 18:31
Show Gist options
  • Save raulneis/7368a2ff6afc826474cd6466d76ede0b to your computer and use it in GitHub Desktop.
Save raulneis/7368a2ff6afc826474cd6466d76ede0b to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo a2dismod php7.0
sudo a2dismod php7.1
sudo a2enmod php5.6
sudo service apache2 restart
sudo ln -sfn /usr/bin/php5.6 /etc/alternatives/php
#!/bin/bash
sudo a2dismod php5.6
sudo a2dismod php7.1
sudo a2enmod php7.0
sudo service apache2 restart
sudo ln -sfn /usr/bin/php7.0 /etc/alternatives/php
#!/bin/bash
sudo a2dismod php5.6
sudo a2dismod php7.0
sudo a2enmod php7.1
sudo service apache2 restart
sudo ln -sfn /usr/bin/php7.1 /etc/alternatives/php
@matudelatower
Copy link

#!/bin/bash
sudo a2dismod php5.6
sudo a2dismod php7.0
sudo a2dismod php7.1
sudo a2enmod php7.2

sudo service apache2 restart
sudo ln -sfn /usr/bin/php7.2 /etc/alternatives/php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment