wget https://tool.fengqi.me/php-5.2.17/php-5.2.17.tar.bz2 wget https://tool.fengqi.me/php-5.2.17/php-5.2.17-fpm-0.5.14.diff.gz wget https://tool.fengqi.me/php-5.2.17/txtbgxGXAvz4N.txt wget https://tool.fengqi.me/php-5.2.17/debian_patches_disable_SSLv2_for_openssl_1_0_0.patch wget https://tool.fengqi.me/php-5.2.17/php-5.2.17-max-input-vars.patch tar axf 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 patch -d php-5.2.17 -p0 -b < txtbgxGXAvz4N.txt patch -d php-5.2.17 -p1 < debian_patches_disable_SSLv2_for_openssl_1_0_0.patch patch -d php-5.2.17 -p2 < php-5.2.17-max-input-vars.patch cd php-5.2.17 ./configure --prefix=/opt/php52 --with-config-file-path=/opt/php52/etc make make install cp php.ini-dist /opt/php52/etc/php.ini