Skip to content

Instantly share code, notes, and snippets.

@petronioamaral
Last active February 28, 2022 16:46
Show Gist options
  • Save petronioamaral/7688a0950e2df250755225b842a6f2ac to your computer and use it in GitHub Desktop.
Save petronioamaral/7688a0950e2df250755225b842a6f2ac to your computer and use it in GitHub Desktop.
Linux Commands - Apache
Enable version php = sudo a2enmod php5.6
Disable version php = sudo a2dismod php7.3

restart = udo systemctl restart apache2

check versions enabled = ls -l mods-*/*php*
test sintaxe apache = apache2ctl configtest
change version php = sudo update-alternatives --config php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment