Debian : installation de PHP 5.3 sous Wheezy

Boris HUISGEN December 23, 2013

administration hébergement linux debian apache php

root@amazon ~ # cat /etc/apt/sources.list

deb http://ftp.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free

root@amazon ~ # cat /etc/apt/preferences.d/preferences
Package: php5*
Pin: release a=oldstable
Pin-Priority: 700

Package: libapache2-mod-php5
Pin: release a=oldstable
Pin-Priority: 700

Package: php-pear
Pin: release a=oldstable
Pin-Priority: 700

Package: php-apc
Pin: release a=oldstable
Pin-Priority: 700

Package: *
Pin: release a=stable
Pin-Priority: 600

root@amazon ~ # apt-get update
root@amazon ~ # apt-get install libapache2-mod-php5 php5-cli php5-curl php5-dev php5-gd php5-mcrypt php5-mysql

See also

Debian : script de démarrage spawn-fcgi / PHP
Read more
Debian : coloration du prompt
Read more
Debian : forcer la métrique d’une interface réseau
Read more