Guest User

Untitled

a guest
Sep 8th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Install php 5.2 & apache2 on debian squeeze
  4. #
  5. # Usage : ./install-php5.2-squeeze.sh
  6. #
  7. # Reference : https://gist.github.com/2971772
  8. #
  9.  
  10. apt-get install curl apache2-mpm-prefork
  11.  
  12. cd /tmp
  13. mkdir php52
  14. cd php52
  15. wget -r -np -nH -nd -R index.html http://archives.dotdeb.org/dists/lenny/php5/5.2.17/binary-amd64/
  16. wget -r -np -nH -nd -R index.html http://archives.dotdeb.org/dists/lenny/php5-pecl/5.2.17/binary-amd64/
  17. wget http://archive.debian.org/debian/pool/main/m/mysql-dfsg-5.0/libmysqlclient15off_5.0.51a-24+lenny5_amd64.deb
  18. wget http://archive.debian.org/debian/pool/main/libt/libtool/libltdl3_1.5.22-4+etch1_amd64.deb
  19.  
  20. curl -k https://raw.github.com/gist/2971772/aebf1d793f0adaa8d255e2280e305b586c3dc812/etc-apt-preferences.d-php5 > /etc/apt/preferences.d/php5
  21.  
  22. apt-get update
  23.  
  24. dpkg -i libapache2-mod-php5_5.2.17-0.dotdeb.0_amd64.deb \
  25. php5-mysql_5.2.17-0.dotdeb.0_amd64.deb \
  26. php5-cli_5.2.17-0.dotdeb.0_amd64.deb \
  27. php5_5.2.17-0.dotdeb.0_all.deb \
  28. php5-curl_5.2.17-0.dotdeb.0_amd64.deb \
  29. php5-common_5.2.17-0.dotdeb.0_amd64.deb \
  30. libmysqlclient15off_5.0.51a-24+lenny5_amd64.deb
  31.  
  32. # suhosin
  33. #dpkg -i php5-suhosin_5.2.17-0.dotdeb.0_amd64.deb
  34.  
  35. # mcrypt
  36. #dpkg -i libltdl3_1.5.22-4+etch1_amd64.deb php5-mcrypt_5.2.17-0.dotdeb.0_amd64.deb
  37.  
  38. # apc
  39. #dpkg -i php5-apc_5.2.17-0.dotdeb.0_amd64.deb
  40.  
  41. # gd
  42. #dpkg -i php5-gd_5.2.17-0.dotdeb.0_amd64.deb
  43.  
  44. # memcache
  45. #dpkg -i php5-memcache_5.2.17-0.dotdeb.0_amd64.deb
  46.  
  47. # mhash
  48. #dpkg -i php5-mhash_5.2.17-0.dotdeb.0_amd64.deb
  49.  
  50. # xsl
  51. #dpkg -i php5-xsl_5.2.17-0.dotdeb.0_amd64.deb
  52.  
  53. apt-get -f install
  54.  
  55. /etc/init.d/apache2 restart
Advertisement
Add Comment
Please, Sign In to add comment