Created
June 6, 2013 09:39
-
-
Save pad92/5720421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package: libapache2-mod-php5 libapache2-mod-php5filter | |
Pin: version 5.2* | |
Pin-Priority: 1001 | |
Package: php5-suhosin | |
Pin: version 0.9.2* | |
Pin-Priority: 1001 | |
Package: php5 php5-cgi php5-cli php5-common php5-curl php5-dbg php5-dev php5-enchant php5-gd php5-gmp php5-ming php5-xcache | |
Pin: version 5.2* | |
Pin-Priority: 1001 | |
Package: php5-imagick php5-imap php5-interbase php5-intl php5-ldap php5-mcrypt php5-mhash php5-mysql php5-odbc php5-pgsql | |
Pin: version 5.2* | |
Pin-Priority: 1001 | |
Package: php5-pspell php5-recode php5-snmp php5-sqlite php5-sybase php5-tidy php5-xmlrpc php5-xsl php-pear php5-memcache php5-apc | |
Pin: version 5.2* | |
Pin-Priority: 1001 | |
Package: php-benchmark | |
Pin: version 1.2.7* | |
Pin-Priority: 1001 | |
Package: php-compat | |
Pin: version 1.5.0* | |
Pin-Priority: 1001 | |
Package: php-http | |
Pin: version 1.4.0* | |
Pin-Priority: 1001 | |
Package: php-http-request | |
Pin: version 1.4.2* | |
Pin-Priority: 1001 | |
Package: php-net-socket | |
Pin: version 1.0.8* | |
Pin-Priority: 1001 | |
Package: php-net-url | |
Pin: version 1.0.15* | |
Pin-Priority: 1001 | |
Package: php5-xdebug | |
Pin: version 2.0.3* | |
Pin-Priority: 1001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Install php 5.2 & apache2 on debian squeeze | |
# | |
# Usage : ./install-php5.2-squeeze.sh | |
# | |
# Reference : https://gist.github.com/2971772 | |
# | |
apt-get install curl apache2-mpm-prefork | |
cd /tmp | |
mkdir php52 | |
cd php52 | |
wget -r -np -nH -nd -R index.html http://archives.dotdeb.org/dists/lenny/php5/5.2.17/binary-amd64/ | |
wget -r -np -nH -nd -R index.html http://archives.dotdeb.org/dists/lenny/php5-pecl/5.2.17/binary-amd64/ | |
wget http://archive.debian.org/debian/pool/main/m/mysql-dfsg-5.0/libmysqlclient15off_5.0.51a-24+lenny5_amd64.deb | |
wget http://archive.debian.org/debian/pool/main/libt/libtool/libltdl3_1.5.22-4+etch1_amd64.deb | |
curl -k https://gist.github.com/nvogel/2971772/raw/4e82f220f61a7a534d94a7114e180d3eb131747b/etc-apt-preferences.d-php5 > /etc/apt/preferences.d/php5 | |
apt-get update | |
dpkg -i libapache2-mod-php5_5.2.17-0.dotdeb.0_amd64.deb \ | |
php5-mysql_5.2.17-0.dotdeb.0_amd64.deb \ | |
php5-cli_5.2.17-0.dotdeb.0_amd64.deb \ | |
php5_5.2.17-0.dotdeb.0_all.deb \ | |
php5-curl_5.2.17-0.dotdeb.0_amd64.deb \ | |
php5-common_5.2.17-0.dotdeb.0_amd64.deb \ | |
libmysqlclient15off_5.0.51a-24+lenny5_amd64.deb | |
# pear | |
#dpkg -i php-pear_5.2.17-0.dotdeb.0_all.deb | |
# suhosin | |
#dpkg -i php5-suhosin_5.2.17-0.dotdeb.0_amd64.deb | |
# cgi | |
# dpkg -i php5-cgi_5.2.17-0.dotdeb.0_amd64.deb | |
# ming | |
# wget http://archive.debian.org/debian/pool/main/m/ming/libming0_0.3.0-14_amd64.deb | |
# dpkg -i libming0_0.3.0-14_amd64.deb | |
# dpkg -i php5-ming_5.2.17-0.dotdeb.0_amd64.deb | |
# imap | |
# wget http://archive.debian.org/debian/pool/main/u/uw-imap/libc-client2007b_2007b~dfsg-4+lenny3_amd64.deb | |
# dpkg -i "libc-client2007b_2007b~dfsg-4+lenny3_amd64.deb" | |
# dpkg -i php5-imap_5.2.17-0.dotdeb.0_amd64.deb | |
# imagick | |
# wget http://archive.debian.org/debian-archive/debian/pool/main/g/graphviz/libgraphviz4_2.20.2-3_amd64.deb | |
# wget http://archive.debian.org/debian-archive/debian/pool/main/i/imagemagick/libmagick10_6.3.7.9.dfsg2-1~lenny4_amd64.deb | |
# dpkg -i libgraphviz4_2.20.2-3_amd64.deb libmagick10_6.3.7.9.dfsg2-1~lenny4_amd64.deb | |
# dpkg -i "php5-imagick_5.2.17-0.dotdeb.0_amd64.deb" | |
# ldap | |
# dpkg -i php5-ldap_5.2.17-0.dotdeb.0_amd64.deb | |
# snmp | |
# dpkg -i php5-snmp_5.2.17-0.dotdeb.0_amd64.deb | |
# spplus | |
# dpkg -i php5-spplus_5.2.17-0.dotdeb.0_amd64.deb | |
# xcache | |
# dpkg -i php5-xcache_5.2.17-0.dotdeb.0_amd64.deb | |
# mcrypt | |
# dpkg -i libltdl3_1.5.22-4+etch1_amd64.deb php5-mcrypt_5.2.17-0.dotdeb.0_amd64.deb | |
# apc | |
# dpkg -i php5-apc_5.2.17-0.dotdeb.0_amd64.deb | |
# gd | |
# dpkg -i php5-gd_5.2.17-0.dotdeb.0_amd64.deb | |
# memcache | |
# dpkg -i php5-memcache_5.2.17-0.dotdeb.0_amd64.deb | |
# mhash | |
# dpkg -i php5-mhash_5.2.17-0.dotdeb.0_amd64.deb | |
# xsl | |
# dpkg -i php5-xsl_5.2.17-0.dotdeb.0_amd64.deb | |
apt-get -f install | |
/etc/init.d/apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment