Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#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