Skip to content

Instantly share code, notes, and snippets.

@fernandopetry
Last active August 22, 2019 23:59
Show Gist options
  • Select an option

  • Save fernandopetry/fd3ab8667362c5affcb56c86bab74df4 to your computer and use it in GitHub Desktop.

Select an option

Save fernandopetry/fd3ab8667362c5affcb56c86bab74df4 to your computer and use it in GitHub Desktop.

Ativar PHP 7.0

sudo a2dismod php7.1 && sudo a2enmod php7.0 && sudo service apache2 restart && sudo update-alternatives --set php /usr/bin/php7.0

Ativar PHP 7.1

sudo a2dismod php5.6 && sudo a2enmod php7.1 && sudo service apache2 restart && sudo update-alternatives --set php /usr/bin/php7.1

sudo a2dismod php7.0 && sudo a2enmod php7.1 && sudo service apache2 restart && sudo update-alternatives --set php /usr/bin/php7.1

Ativar PHP 5.6

sudo a2dismod php7.1 && sudo a2enmod php5.6 && sudo service apache2 restart && sudo update-alternatives --set php /usr/bin/php5.6

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