GNU/Linux >> Linux Esercitazione >  >> Debian

Come installare PHP 7.1 sul server GNU/Linux Debian 8.7 (jessie)?

Questo tutorial spiegherà come installare PHP e i suoi pacchetti dipendenti su GNU Linux. Se Linux è installato con pacchetti minimi, è necessario installare pacchetti come add-apt-repository, apt-transport-https, ca-certificates ecc., poiché questi pacchetti verranno utilizzati per scaricare gli altri pacchetti durante apt-get installa.

Passaggio 1:installa apt-transport-https e certificati ca utilizzando apt-get

#apt-get install install apt-transport-https ca-certificates

Passaggio 2: scopri le informazioni sulla versione con il comando seguente

#lsb_release -sc

Se non trovi il comando precedente, devi installare il pacchetto lsb-release

# apt-get install lsb-release

Fase 3:aggiungi il repository PHP 7.1

In base alle informazioni sulla tua versione, aggiungi il repository che contiene PHP 7.1 all'elenco dei repository. Aggiungi le seguenti informazioni all'elenco di repository già esistente nel file:/etc/apt/sources.list

# vim /etc/apt/sources.list
deb https://packages.sury.org/php/ <release_info> main
deb https://packages.sury.org/php/ <release_info> main

Esempio:

deb https://packages.sury.org/php/ jessie main
deb https://packages.sury.org/php/ jessie main

Passaggio 4: aggiorna il database apt per includere nuovi pacchetti

# apt-get update

Passaggio 5:Installa PHP 7.1 insieme ad altri pacchetti necessari

# apt-get install php7.1 libapache2-mod-php7.1 php7.1-cgi php7.1-fpm php7.1-gd php7.1-mysql

Fase 6:verifica l'installazione di PHP usando phpinfo() in index. php. Di seguito l'istantanea


Debian
  1. Come installare un server LAMP su Debian 9 Stretch Linux

  2. Come installare il server della comunità MySQL su Debian 9 Stretch Linux

  3. Come installare PHP Composer su Debian Linux

  4. Come installare Proxmox VE 4 su Debian 8 (Jessie)

  5. Come installare PHP 7.4 su Debian 10

Come installare un server minimo Debian 8 (Jessie).

Come installare Rundeck su un server Debian 8 (Jessie).

Come installare Gitlab su Debian 8 (Jessie)

Come installare Zen Cart su Debian 9

Come installare il server LAMP su Debian 9

Come installare Webmin su Debian 11 Bullseye Server Linux