GNU/Linux >> Linux Esercitazione >  >> Debian

Installare PHP 8 su Debian 10

PHP 8 introduce numerose novità e miglioramenti. Questa guida mostra l'installazione su Debian 10 tramite repository SURY.

Prerequisiti

  • Debian 10
  • Utente con sudo
  • Connessione Internet

Repository SURY

sudo apt update
sudo apt upgrade -y
sudo apt install -y lsb-release apt-transport-https ca-certificates wget
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update

Installazione PHP 8

sudo apt install php8.0 -y
sudo apt install php8.0-fpm -y
sudo apt install -y php8.0-{mysql,cli,common,snmp,ldap,curl,mbstring,zip}
php -v

Configurare /etc/php/8.0/apache2/php.ini o /etc/php/8.0/fpm/pool.d/www.conf in base al server web. Creare un file info.php che richiami phpinfo() per verificare l'installazione.

Debian
  1. Come installare PHP 7.4 / 7.3 / 7.2 / 7.1 su Debian 10 / Debian 9

  2. Come installare PHP 8.0 su Debian 11

  3. Come installare PHP 8.0 su Debian 10 / Debian 9

  4. Come installare PHP su Debian 11 (versione standard e ultima versione)

  5. Installare PHP 7.2 su Debian 9

Come installare PHP 5.6 su Ubuntu 16.04 e Debian 9

Come installare Laravel su Debian 11 e Debian 10

Installare PHP 8.0 su Debian e Linux Mint

Installare e abilitare Zend OPcache su Debian

Installare PHP 7.4 su Debian 11 Bullseye: guida completa

Come Installare HHVM su Debian 8