Skip to content

Instantly share code, notes, and snippets.

@bjoerns1983
Created October 30, 2019 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerns1983/0d6b5f6a09d1358048641b71a5583282 to your computer and use it in GitHub Desktop.
Save bjoerns1983/0d6b5f6a09d1358048641b71a5583282 to your computer and use it in GitHub Desktop.
#Repos für PHP 7.2 und nginx hinzufügen
add-apt-repository ppa:ondrej/php
add-apt-repository ppa:ondrej/nginx
apt-get update
#Liste der installierten PHP7.0 Module anzeigen lassen
dpkg --get-selections | grep -v deinstall | grep php7.0
#PHP 7.2 installieren
apt-get install php7.2
#Liste der installierten PHP7.2 Module anzeigen lassen
dpkg --get-selections | grep -v deinstall | grep php7.2
#PHP7.2 Module nachinstallieren (nur als Beispiel)
apt-get install php7.2-fpm php7.2-mysql php7.2-curl php7.2-cli php7.2-mbstring php7.2-xml php7.2-gd php7.2.bcmath
#Alte PHP FPM 7.0 stoppen und 7.2 starten
service php7.0-fpm stop
service php7.2-fpm start
#PHP7.2 zum Standard machen
update-alternatives --set php /usr/bin/php7.2
#PHP 7.0 entfernen
apt-get remove php7.0*
#nginx updaten
apt-get install nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment