Skip to content

Instantly share code, notes, and snippets.

@teleinformatique
Forked from artemsky/upgrade.sh
Created December 27, 2018 14:22
Show Gist options
  • Select an option

  • Save teleinformatique/5890d69d9a46ba144cc05e44cd13de2b to your computer and use it in GitHub Desktop.

Select an option

Save teleinformatique/5890d69d9a46ba144cc05e44cd13de2b to your computer and use it in GitHub Desktop.

Revisions

  1. @artemsky artemsky revised this gist Feb 28, 2018. 1 changed file with 5 additions and 10 deletions.
    15 changes: 5 additions & 10 deletions upgrade.sh
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,9 @@
    sudo apt-get install python-software-properties -y
    sudo add-apt-repository ppa:ondrej/php -y
    sudo apt-get update -y

    sudo apt-get install php7.1-curl php7.1-cli php7.1-dev php7.1-gd php7.1-intl php7.1-mcrypt php7.1-json php7.1-mysql php7.1-opcache php7.1-bcmath php7.1-mbstring php7.1-soap php7.1-xml php7.1-zip -y

    sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak
    sudo apt-get remove libapache2-mod-php5 -y
    sudo apt-get install libapache2-mod-php7.1 -y
    sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars
    sudo apt-get install php7.2 php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml
    sudo apt-get install libapache2-mod-php7.2 -y

    sudo a2dismod php5
    sudo a2enmod php7.1

    sudo service apache2
    sudo a2enmod php7.2
    sudo service apache2 restart
  2. @artemsky artemsky created this gist Sep 25, 2017.
    14 changes: 14 additions & 0 deletions upgrade.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    sudo add-apt-repository ppa:ondrej/php -y
    sudo apt-get update -y

    sudo apt-get install php7.1-curl php7.1-cli php7.1-dev php7.1-gd php7.1-intl php7.1-mcrypt php7.1-json php7.1-mysql php7.1-opcache php7.1-bcmath php7.1-mbstring php7.1-soap php7.1-xml php7.1-zip -y

    sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak
    sudo apt-get remove libapache2-mod-php5 -y
    sudo apt-get install libapache2-mod-php7.1 -y
    sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars

    sudo a2dismod php5
    sudo a2enmod php7.1

    sudo service apache2