Neo2SHYAlien

Untitled

Mar 8th, 2017
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash -x
  2. arch=$(uname -m)
  3. if [[ $arch == "x86_64" ]]; then
  4.         platform="x86-64"
  5.         libdir=/usr/lib64
  6. else
  7.         platform="x86"
  8.         libdir=/usr/lib
  9. fi
  10.  
  11.  
  12. version=5.6.14
  13. phpsource="http://dl1.centos-webpanel.com/files/php/selector/php-$version.tar.bz2"
  14. ioncube="http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_$platform.tar.gz"
  15.  
  16.  
  17. rm -rf /tmp/php-build; mkdir -p /tmp/php-build
  18. cd /tmp/php-build
  19.  
  20. wget -q $phpsource
  21. wget  $ioncube
  22.  
  23. tar -xvf php-$version.tar.bz2
  24. cd php-$version/
  25.  
  26. chmod +x /usr/local/cwp/.conf/php_conf/php56.conf
  27. sh /usr/local/cwp/.conf/php_conf/php56.conf 2>&1
  28.  
  29. #make clean 2>&1
  30. make 2>&1
  31. make install 2>&1
  32.  
  33. #Production PHP.ini
  34. mkdir -p /opt/alt/php56/usr/php
  35. mkdir -p /opt/alt/php56/usr/php/php.d
  36. rsync php.ini-production /opt/alt/php56/usr/php/php.ini
RAW Paste Data