5.1.16 | stable | 2018-12-16 | apcu-5.1.16.tgz (91.8kB) DLL | [Changelog] |
---|
PhpSwitcher: add APCU, Imagick and IONCUBE
-
- community contribution
- UncleSam
-
-
-
-
Added apcu version 5.1.16
Shell-Script- #!/bin/bash
- compDate=$(date +'%Y%m%d_%H%M%S')
- echo 'Successfully set compile date to '$compDate
- echo 'Starting to compile PHP modules'
- perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --auto-setup -i /opt/phpswitcher/$compDate 7.1 7.0 5.6 5.5 5.4 5.3
- #perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --auto-setup -i /opt/phpswitcher/$compDate 7.3 7.2 7.1 7.0 5.6 5.5 5.4 5.3
- echo 'Adding Extensions'
- # See https://pecl.php.net/package/APCu for versions
- # version 4 for pre 7.0
- # version 5 for 7.0, 7.1, 7.2 7.3(not yet supported)
- echo "Adding APCU"
- /opt/phpswitcher/$compDate/php5.3/bin/pecl install channel://pecl.php.net/apcu-4.0.11
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.3/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php5.3/etc/php/conf.d/02_apcu.ini
- /opt/phpswitcher/$compDate/php5.4/bin/pecl install channel://pecl.php.net/apcu-4.0.11
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.4/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php5.4/etc/php/conf.d/02_apcu.ini
- /opt/phpswitcher/$compDate/php5.5/bin/pecl install channel://pecl.php.net/apcu-4.0.11
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.5/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php5.5/etc/php/conf.d/02_apcu.ini
- /opt/phpswitcher/$compDate/php5.6/bin/pecl install channel://pecl.php.net/apcu-4.0.11
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.6/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php5.6/etc/php/conf.d/02_apcu.ini
- /opt/phpswitcher/$compDate/php7.0/bin/pecl install channel://pecl.php.net/apcu-5.1.16
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.0/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php7.0/etc/php/conf.d/02_apcu.ini
- /opt/phpswitcher/$compDate/php7.1/bin/pecl install channel://pecl.php.net/apcu-5.1.16
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.1/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php7.1/etc/php/conf.d/02_apcu.ini
- #/opt/phpswitcher/$compDate/php7.2/bin/pecl install channel://pecl.php.net/apcu-5.1.16
- #PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.2/bin/php-config --extension-dir)
- #echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php7.2/etc/php/conf.d/02_apcu.ini
- #/opt/phpswitcher/$compDate/php7.3/bin/pecl install channel://pecl.php.net/apcu-5.1.16
- #PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.3/bin/php-config --extension-dir)
- #echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php7.3/etc/php/conf.d/02_apcu.ini
- echo "Adding ioncube"
- cd /usr/local/src
- # cleanup first (if not old version is used which is bad)
- rm /usr/local/src/ioncube_loaders_lin_x86-64.tar.gz
- rm -r /usr/local/src/ioncube/
- # wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
- wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
- tar -xzf ioncube_loaders_lin_x86-64.tar.gz
- cd ioncube
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.3/bin/php-config --extension-dir)
- cp ioncube_loader_lin_5.3.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php5.3/etc/php/conf.d/01_ioncube.ini
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.4/bin/php-config --extension-dir)
- cp ioncube_loader_lin_5.4.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php5.4/etc/php/conf.d/01_ioncube.ini
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.5/bin/php-config --extension-dir)
- cp ioncube_loader_lin_5.5.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php5.5/etc/php/conf.d/01_ioncube.ini
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.6/bin/php-config --extension-dir)
- cp ioncube_loader_lin_5.6.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php5.6/etc/php/conf.d/01_ioncube.ini
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.0/bin/php-config --extension-dir)
- cp ioncube_loader_lin_7.0.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php7.0/etc/php/conf.d/01_ioncube.ini
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.1/bin/php-config --extension-dir)
- cp ioncube_loader_lin_7.1.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php7.1/etc/php/conf.d/01_ioncube.ini
- #PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.2/bin/php-config --extension-dir)
- #cp ioncube_loader_lin_7.2.so $PHP_EXT_DIR/ioncube.so
- #echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php7.2/etc/php/conf.d/01_ioncube.ini
- #PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.3/bin/php-config --extension-dir)
- #cp ioncube_loader_lin_7.3.so $PHP_EXT_DIR/ioncube.so
- #echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php7.3/etc/php/conf.d/01_ioncube.ini
- cd
- echo "Restarting services..."
- service psw5.3-fpm restart
- service psw5.4-fpm restart
- service psw5.5-fpm restart
- service psw5.6-fpm restart
- service psw7.0-fpm restart
- service psw7.1-fpm restart
- #service psw7.2-fpm restart
- #service psw7.3-fpm restart
- service apache2 restart
- echo "Done"
-
5.1.17 stable 2019-02-08 apcu-5.1.17.tgz (92.6kB) DLL [ Changelog ]
- Fixed compatibility with PHP 7.4 and PHP 8.0.
-
-
Added apcu version 5.1.17
Shell-Script- #!/bin/bash
- compDate=$(date +'%Y%m%d_%H%M%S')
- echo 'Successfully set compile date to '$compDate
- echo 'Starting to compile PHP modules'
- perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --auto-setup -i /opt/phpswitcher/$compDate 7.1 7.0 5.6 5.5 5.4 5.3
- #perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --auto-setup -i /opt/phpswitcher/$compDate 7.3 7.2 7.1 7.0 5.6 5.5 5.4 5.3
- echo 'Adding Extensions'
- # See https://pecl.php.net/package/APCu for versions
- # version 4 for pre 7.0
- # version 5 for 7.0, 7.1, 7.2 7.3(not yet supported)
- echo "Adding APCU"
- /opt/phpswitcher/$compDate/php5.3/bin/pecl install channel://pecl.php.net/apcu-4.0.11
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.3/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php5.3/etc/php/conf.d/02_apcu.ini
- /opt/phpswitcher/$compDate/php5.4/bin/pecl install channel://pecl.php.net/apcu-4.0.11
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.4/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php5.4/etc/php/conf.d/02_apcu.ini
- /opt/phpswitcher/$compDate/php5.5/bin/pecl install channel://pecl.php.net/apcu-4.0.11
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.5/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php5.5/etc/php/conf.d/02_apcu.ini
- /opt/phpswitcher/$compDate/php5.6/bin/pecl install channel://pecl.php.net/apcu-4.0.11
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.6/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php5.6/etc/php/conf.d/02_apcu.ini
- /opt/phpswitcher/$compDate/php7.0/bin/pecl install channel://pecl.php.net/apcu-5.1.17
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.0/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php7.0/etc/php/conf.d/02_apcu.ini
- /opt/phpswitcher/$compDate/php7.1/bin/pecl install channel://pecl.php.net/apcu-5.1.17
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.1/bin/php-config --extension-dir)
- echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php7.1/etc/php/conf.d/02_apcu.ini
- #/opt/phpswitcher/$compDate/php7.2/bin/pecl install channel://pecl.php.net/apcu-5.1.17
- #PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.2/bin/php-config --extension-dir)
- #echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php7.2/etc/php/conf.d/02_apcu.ini
- #/opt/phpswitcher/$compDate/php7.3/bin/pecl install channel://pecl.php.net/apcu-5.1.17
- #PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.3/bin/php-config --extension-dir)
- #echo "extension = $PHP_EXT_DIR/apcu.so" > /opt/phpswitcher/$compDate/php7.3/etc/php/conf.d/02_apcu.ini
- echo "Adding ioncube"
- cd /usr/local/src
- # cleanup first (if not old version is used which is bad)
- rm /usr/local/src/ioncube_loaders_lin_x86-64.tar.gz
- rm -r /usr/local/src/ioncube/
- # wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
- wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
- tar -xzf ioncube_loaders_lin_x86-64.tar.gz
- cd ioncube
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.3/bin/php-config --extension-dir)
- cp ioncube_loader_lin_5.3.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php5.3/etc/php/conf.d/01_ioncube.ini
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.4/bin/php-config --extension-dir)
- cp ioncube_loader_lin_5.4.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php5.4/etc/php/conf.d/01_ioncube.ini
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.5/bin/php-config --extension-dir)
- cp ioncube_loader_lin_5.5.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php5.5/etc/php/conf.d/01_ioncube.ini
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php5.6/bin/php-config --extension-dir)
- cp ioncube_loader_lin_5.6.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php5.6/etc/php/conf.d/01_ioncube.ini
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.0/bin/php-config --extension-dir)
- cp ioncube_loader_lin_7.0.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php7.0/etc/php/conf.d/01_ioncube.ini
- PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.1/bin/php-config --extension-dir)
- cp ioncube_loader_lin_7.1.so $PHP_EXT_DIR/ioncube.so
- echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php7.1/etc/php/conf.d/01_ioncube.ini
- #PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.2/bin/php-config --extension-dir)
- #cp ioncube_loader_lin_7.2.so $PHP_EXT_DIR/ioncube.so
- #echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php7.2/etc/php/conf.d/01_ioncube.ini
- #PHP_EXT_DIR=$(/opt/phpswitcher/$compDate/php7.3/bin/php-config --extension-dir)
- #cp ioncube_loader_lin_7.3.so $PHP_EXT_DIR/ioncube.so
- #echo "zend_extension = $PHP_EXT_DIR/ioncube.so" > /opt/phpswitcher/$compDate/php7.3/etc/php/conf.d/01_ioncube.ini
- cd
- echo "Restarting services..."
- service psw5.3-fpm restart
- service psw5.4-fpm restart
- service psw5.5-fpm restart
- service psw5.6-fpm restart
- service psw7.0-fpm restart
- service psw7.1-fpm restart
- #service psw7.2-fpm restart
- #service psw7.3-fpm restart
- service apache2 restart
- echo "Done"
-
-
-
-
Updated module with a brand new part which is enabling some modules by default (like gmt, sqlite3 and pdo_sqlite).
-
-
-
This script will not work with version 5.0.1. It will not work
-