php 5.2.17 en php-fpm

Sous linux debian 7 64bits

aptitude install patch make gcc libxml2-dev pkg-config libssl-dev libcurl3-dev libjpeg-dev libpng-dev libc-client-dev libmcrypt-dev libmhash-dev libmysql++-dev libxslt-dev libltdl7-dev

wget http://museum.php.net/php5/php-5.2.17.tar.bz2
wget http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz

https://bugs.php.net/patch-display.php?bug_id=54736&patch=debian_patches_disable_SSLv2_for_openssl_1_0_0.patch&revision=1305414559&download=1

patch php-${version}/ext/openssl/xp_ssl.c debian_patches_disable_SSLv2_for_openssl_1_0_0.patch.patch.txt

ln -sf /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/
ln -sf /usr/lib/libc-client.so /usr/lib/x86_64-linux-gnu/

tar -xvzf php-5.2.17.tar.bz2

gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -d php-5.2.17 -p1

cd php-5.2.17

./configure –with-libdir=lib/x86_64-linux-gnu –enable-fastcgi –enable-fpm –with-mcrypt –with-zlib –enable-mbstring –enable-pdo –with-curl –disable-debug –with-pic –disable-rpath –enable-inline-optimization –enable-xml –with-zlib –enable-sockets –enable-sysvsem –enable-sysvshm –enable-pcntl –enable-mbregex –with-mhash –with-xsl –enable-zip –with-pcre-regex –with-gd –without-pdo-sqlite –with-pdo-mysql –without-sqlite –with-jpeg-dir=/usr –with-png-dir=/usr –with-mysql –enable-bcmath –enable-calendar –enable-exif –enable-ftp –with-gettext –with-imap –with-imap-ssl –with-mysqli –with-openssl –with-kerberos –enable-shmop –enable-wddx –prefix=/usr/local/php52

make -j8 all

checkinstall