Sie sind auf Seite 1von 2

Archivo: /media/eduard/TOSHIBA_1TB_A/01-actualizar-php-5.6.

md Página 1 de 2

Instalar PHP 5.6 en ubuntu 14.04


================================
https://cristarta.com/how-to-upgrade-php-5-5-to-5-6-on-ubuntu-14-04-lts/

Comprobar locales:

sudo nano /etc/default/locale

LC_ALL=es_ES.UTF-8

Instalar el repositorio con PPA:

sudo LC_ALL=es_ES.UTF-8 add-apt-repository ppa:ondrej/php

Co-installable PHP versions: PHP 5.6, PHP 7.0, PHP 7.1 and most requested
extensions are included.

PLEASE DON'T USE PHP 5.4 OR PHP 5.5. The PHP 5.5 and later are no longer
supported with security updates, therefore they are not included in this
repository.

You can get more information about the packages at https://deb.sury.org

BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-


reporting

PLEASE READ: If you like my work and want to give me a little motivation,
please consider donating regularly: https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see https://


github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php


Más información: https://launchpad.net/~ondrej/+archive/ubuntu/php
Pulse [Intro] para continuar o ctrl-c para cancelar

gpg: anillo «/tmp/tmp3z48wsrs/secring.gpg» creado


gpg: anillo «/tmp/tmp3z48wsrs/pubring.gpg» creado
gpg: solicitando clave E5267A6C de hkp servidor keyserver.ubuntu.com
gpg: /tmp/tmp3z48wsrs/trustdb.gpg: se ha creado base de datos de confianza
gpg: clave E5267A6C: clave pública "Launchpad PPA for Ondřej Surý" importada
gpg: Cantidad total procesada: 1
gpg: importadas: 1 (RSA: 1)
OK

Actualizar paquetes

sudo apt-get update

Listar los paquetes PHP 5.5.x instalados:

dpkg --get-selections | grep php

libapache2-mod-php5 install
libphp-pclzip install
php-crypt-gpg install
php-gettext install
php-pear install
php5 install
php5-cli install
php5-common install
php5-curl install
php5-dev install
php5-gd install
php5-intl install
Archivo: /media/eduard/TOSHIBA_1TB_A/01-actualizar-php-5.6.md Página 2 de 2

php5-json install
php5-mcrypt install
php5-mysql install
php5-readline install
php5-xmlrpc install
php5-xsl install
phpmyadmin install
pkg-php-tools install

Descargar las versiones php 5.6.X

sudo apt-get install php5.6 php5.6-cli php5.6-common php5.6-curl php5.6-dev


php5.6-gd php5.6-intl php5.6-json php5.6-mcrypt php5.6-mysql php5.6-readline
php5.6-xml php5.6-xmlrpc php5.6-xsl php5.6-soap libzip4 php5.6-zip php5.6-sqlite
php5.6-mbstring
sudo apt-get dist-upgrade
sudo apt-get autoremove -y

Una vez instalado actualizamos apache

sudo a2dismod php5.5


sudo a2enmod php5.6
sudo service apache2 restart

Ahora tendria que funcionar con php 5.6

Das könnte Ihnen auch gefallen