Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -x
- arch=$(uname -m)
- if [[ $arch == "x86_64" ]]; then
- platform="x86-64"
- libdir=/usr/lib64
- else
- platform="x86"
- libdir=/usr/lib
- fi
- version=5.6.14
- phpsource="http://dl1.centos-webpanel.com/files/php/selector/php-$version.tar.bz2"
- ioncube="http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_$platform.tar.gz"
- rm -rf /tmp/php-build; mkdir -p /tmp/php-build
- cd /tmp/php-build
- wget -q $phpsource
- wget $ioncube
- tar -xvf php-$version.tar.bz2
- cd php-$version/
- chmod +x /usr/local/cwp/.conf/php_conf/php56.conf
- sh /usr/local/cwp/.conf/php_conf/php56.conf 2>&1
- #make clean 2>&1
- make 2>&1
- make install 2>&1
- #Production PHP.ini
- mkdir -p /opt/alt/php56/usr/php
- mkdir -p /opt/alt/php56/usr/php/php.d
- rsync php.ini-production /opt/alt/php56/usr/php/php.ini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement