Comments on How to Install PHP 8 on Debian 11
PHP is a free, Open-source, and most popular server-side programming language used for creating dynamic websites. In this tutorial, I will show you how to install PHP 8.0 on Debian 11.
4 Comment(s)
Comments
I get this erro message. after usind the command wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add - apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
try it as superuser: sudo -i
wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add -E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
apt install gnupg2
Avoid apt-key and use : wget -O- https://packages.sury.org/php/apt.gpg | sudo tee /usr/share/keyrings/packages-sury-org-apt.gpg > /dev/null And if the key is armored. wget -O- https://packages.sury.org/php/apt.gpg.asc | gpg --dearmor | sudo tee /usr/share/keyrings/packages-sury-org-apt.gpg > /dev/null*( Not this armor-ed line is an example and does not work )