Ubuntu – PHP 7.4 Upgrade

System vollständig aktualisieren
sudo apt-get update && sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo reboot
PHP Repository hinzufügen
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
Liste der installierten PHP Packages
dpkg -l | grep php
Installation der notwendigen PHP Packages (siehe Liste oben)
sudo apt install php7.4
sudo apt install php7.4-curl php7.4-gd php7.4-imagick php7.4-intl php7.4-mbstring php7.4-mysql php7.4-xml php7.4-zip php7.4-bz2 php7.4-bcmath php7.4-gmp
PHP 7.4 aktivieren
sudo a2dismod php7.2
sudo a2enmod php7.4
sudo systemctl restart apache2
PHP Memory anpassen
sudo cp /etc/php/7.4/apache2/php.ini /etc/php/7.4/apache2/php.ini.org
sudo nano /etc/php/7.4/apache2/php.ini

memory_limit=512M

sudo systemctl restart apache2