Operativo
- Actualización del sistema operativo
apt-get update && apt-get upgrade && apt-get dist-upgrade
apt-get check && apt-get install -fy && apt-get autoremove && apt-get autoclean && apt-get clean
Instalar PHP
apt install ca-certificates apt-transport-https acl git
- Agregamos la llave y el repositorio
wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list
apt-get update && apt-get upgrade && apt-get dist-upgrade
apt-get install php5.6 php5.6-mysql php5.6-gd php5.6-ldap php5.6-odbc php5.6-pgsql php5.6-curl php5.6-json php5.6-sqlite3 php5.6-xml php5.6-mbstring php5.6-cli php5.6-common libapache2-mod-php5.6 php5.6-zip
apt install php7.1 php7.1-mysql php7.1-gd php7.1-ldap php7.1-odbc php7.1-pgsql php7.1-curl php7.1-json php7.1-sqlite3 php7.1-xml php7.1-mbstring php7.1-cli php7.1-common php7.1-zip
apt install php7.2 php7.2-mysql php7.2-gd php7.2-ldap php7.2-odbc php7.2-pgsql php7.2-curl php7.2-json php7.2-sqlite3 php7.2-xml php7.2-mbstring php7.2-cli php7.2-common php7.2-zip
apt install php7.3 php7.3-bcmath php7.3-bz2 php7.3-cgi php7.3-cli php7.3-common php7.3-curl php7.3-dba php7.3-dev php7.3-enchant php7.3-fpm php7.3-gd php7.3-gmp php7.3-imap php7.3-interbase php7.3-intl php7.3-json php7.3-ldap php7.3-mbstring php7.3-mysql php7.3-odbc php7.3-opcache php7.3-pgsql php7.3-phpdbg php7.3-pspell php7.3-readline php7.3-recode php7.3-snmp php7.3-soap php7.3-sqlite3 php7.3-sybase php7.3-tidy php7.3-xml php7.3-xmlrpc php7.3-xsl php7.3-zip
- Verificamos la versión con
php -v
Instalar Apache
- Ahora instalamos el servidor web
apt-get install apache2 curl unace unzip zip
- Podemos verificar la versión