RaspberryPi:PHP8: Unterschied zwischen den Versionen

Aus Alexander's Wiki
(Die Seite wurde neu angelegt: „Install lsb-release package<syntaxhighlight lang="bash"> apt install lsb-release </syntaxhighlight>Den GPG Key für das PHP-Repository herunterladen<syntaxhigh…“)
 
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 3: Zeile 3:
</syntaxhighlight>Den GPG Key für das PHP-Repository herunterladen<syntaxhighlight lang="bash">
</syntaxhighlight>Den GPG Key für das PHP-Repository herunterladen<syntaxhighlight lang="bash">
curl https://packages.sury.org/php/apt.gpg | sudo tee /usr/share/keyrings/suryphp-archive-keyring.gpg >/dev/null
curl https://packages.sury.org/php/apt.gpg | sudo tee /usr/share/keyrings/suryphp-archive-keyring.gpg >/dev/null
</syntaxhighlight>Link zum Repository<syntaxhighlight lang="bash">
echo "deb [signed-by=/usr/share/keyrings/suryphp-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/sury-php.list
apt update
</syntaxhighlight>Installation php<syntaxhighlight lang="bash">
apt install php8.3 php8.3-fpm php8.3-mysql php8.3-zip php8.3-common php8.3-zip php8.3-xml php8.3-mbstring php8.3-gd php8.3-curl
</syntaxhighlight>
</syntaxhighlight>

Aktuelle Version vom 17. Februar 2024, 22:57 Uhr

Install lsb-release package

apt install lsb-release

Den GPG Key für das PHP-Repository herunterladen

curl https://packages.sury.org/php/apt.gpg | sudo tee /usr/share/keyrings/suryphp-archive-keyring.gpg >/dev/null

Link zum Repository

echo "deb [signed-by=/usr/share/keyrings/suryphp-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/sury-php.list

apt update

Installation php

apt install php8.3 php8.3-fpm php8.3-mysql php8.3-zip php8.3-common php8.3-zip php8.3-xml php8.3-mbstring php8.3-gd php8.3-curl