sudo apt-get install software-properties-comunes python-software-properties
ppa sudo add-apt-repositorio: ondrej / php && sudo apt-get update
sudo apt-get -y install php7.2
# Si hay otras versiones de PHP antes, desinstalación
sudo apt-get autoremove php5 php5-FPM php7
# Instalación de expansión común
sudo apt-get -y instalar php7.2- pies por minuto php7.2-MySQL-php7.2 rizo php7.2-JSON php7.2-mbstring php7.2-xml-php7.2 Intl#安装其他扩展(按需安装)
sudo apt-get install php7.2-gd
sudo apt-get install php7.2 jabón
sudo apt-get install php7.2-gmp
sudo apt-get instalar php7.2-ODBC
sudo apt-get install-php7.2 pspell
sudo apt-get install-php7.2 bcmath
sudo apt-get install php7.2-encantamiento
sudo apt-get install php7.2-IMAP
sudo apt-get instalar php7.2-LDAP
sudo apt-get install-php7.2 opcache
sudo apt-get install php7.2-readline
sudo apt-get install php7.2-sqlite3
sudo apt-get install-php7.2 xmlrpc
sudo apt-get instalar php7.2-bz2
sudo apt-get install-php7.2 interbase
sudo apt-get install php7.2-pgsql
sudo apt-get install php7.2-recodificar
sudo apt-get install php7.2 por Sybase
sudo apt-get install php7.2-XSL
sudo apt-get install php7.2-cgi
sudo apt-get install php7.2-dba
sudo apt-get install-php7.2 phpdbg
sudo apt-get install php7.2-SNMP
sudo apt-get install php7.2-ordenada
sudo apt-get install zip-php7.2
otro
- Configuración del puerto php
al sur se /etc/php/7.2/fpm/pool.d/www.conf
Las líneas de comentario; escuchar = /run/php/php7.2-fpm.sock
línea que acaba de agregar listen = 127.0.0.1:9000
- configuración nginx
sudo vi / etc / nginx / sites-available / default
fastcgi_pass 127.0.0.1:9000;
Referencia original: https://blog.csdn.net/qq_16885135/article/details/79747045