Skip to content

Instantly share code, notes, and snippets.

@thecodeholic
Last active December 9, 2024 07:00

Revisions

  1. thecodeholic revised this gist Dec 9, 2024. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions switchphp.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,6 @@
    a2dismod php8.3
    a2enmod php8.4
    service apache2 restart
    update-alternatives --set php /usr/bin/php8.3
    update-alternatives --set phar /usr/bin/phar8.3
    update-alternatives --set phar.phar /usr/bin/phar.phar8.3
    update-alternatives --set php /usr/bin/php8.4
    update-alternatives --set phar /usr/bin/phar8.4
    update-alternatives --set phar.phar /usr/bin/phar.phar8.4
  2. thecodeholic revised this gist Dec 9, 2024. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions switchphp.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # You must run this file with sudo
    a2dismod php5.6
    a2enmod php7.1
    a2dismod php8.3
    a2enmod php8.4
    service apache2 restart
    update-alternatives --set php /usr/bin/php7.1
    update-alternatives --set phar /usr/bin/phar7.1
    update-alternatives --set phar.phar /usr/bin/phar.phar7.1
    update-alternatives --set php /usr/bin/php8.3
    update-alternatives --set phar /usr/bin/phar8.3
    update-alternatives --set phar.phar /usr/bin/phar.phar8.3
  3. thecodeholic created this gist Dec 8, 2021.
    7 changes: 7 additions & 0 deletions switchphp.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # You must run this file with sudo
    a2dismod php5.6
    a2enmod php7.1
    service apache2 restart
    update-alternatives --set php /usr/bin/php7.1
    update-alternatives --set phar /usr/bin/phar7.1
    update-alternatives --set phar.phar /usr/bin/phar.phar7.1