php8 installation

hello everyone! i have a problem with the installation of php8 on parrot os. i try to install it using sury but it doesn’t work, could someone help me please?? :sob: :sob:


  • Parrot version 4.10

  • output after apt update: Atteint :1 http://packages.microsoft.com/repos/code stable InRelease Atteint :2 https://dl.google.com/linux/chrome/deb stable InRelease Atteint :3 https://deb.parrot.sh/parrot rolling InRelease Atteint :4 https://deb.parrot.sh/parrot rolling-security InRelease Ign :5 https://packages.sury.org/php n/a InRelease Err :6 https://packages.sury.org/php n/a Release 404 Not Found [IP : 185.93.3.244 443] Lecture des listes de paquets... Fait E: Le dépôt https://packages.sury.org/php n/a Release n'a pas de fichier Release. N: Les mises à jour depuis un tel dépôt ne peuvent s'effectuer de manière sécurisée, et sont donc désactivées par défaut. N: Voir les pages de manuel d'apt-secure(8) pour la création des dépôts et les détails de configuration d'un utilisateur.

Welcome to Parrot OS community, @python45 !

Open your Parrot terminal and run:

sudo apt upgrade
sudo apt install ca-certificates apt-transport-https software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.0 libapache2-mod-php8.0
sudo systemctl restart apache2
sudo apt install php8.0-fpm libapache2-mod-fcgid

As PHP-FPM is not enabled by default, enable it by:
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php8.0-fpm

Then restart the Apache for the changes to come into effect:
sudo systemctl restart apache2

1 Like