Centos
1 |
# uname –a |
1 |
…… i686 i686 i386 GNU/Linux |
1 |
# cd /tmp |
Для 32-битных систем
1 |
# wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz |
Для 64-битных систем
1 |
# wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz |
1 |
# tar xvfz ioncube_loaders_lin_x86.tar.gz |
1 |
# mkdir /usr/local/ioncube |
1 |
# php -v |
1 |
PHP 5.3.3 (cli) ........ |
1 |
# cp ioncube/ioncube_loader_lin_5.3* /usr/local/ioncube/ |
1 |
# nano /etc/php.d/ioncube.ini |
1 2 |
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so zend_extension_ts = /usr/local/ioncube/ioncube_loader_lin_5.3_ts.so |
1 |
# /etc/init.d/httpd restart |
1 |
# php –v |
1 2 3 4 |
PHP 5.3.3 (cli) (built: Jul 12 2013 20:21:47) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with the ionCube PHP Loader v4.4.4, Copyright (c) 2002-2013, by ionCube Ltd. |
1 |
# php -m | grep ionCube |
1 2 |
ionCube Loader the ionCube PHP Loader |
Debian/Ubuntu(для примера используем 64-битную опер.систему и php версии 5.6)
1 |
# cd /tmp |
1 |
# wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz |
1 |
# tar xvzf ioncube_loaders_lin_x86-64.tar.gz |
Определяем расположение каталога с расширениями PHP
1 |
# php -i | grep extension_dir |
1 |
extension_dir => /usr/lib/php5/20131226 => /usr/lib/php5/20131226 |
Например, на сервере установлена PHP версии 5.6
1 |
# cp /tmp/ioncube/ioncube_loader_lin_5.6.so /usr/lib/php5/20131226/ |
1 |
# rm -rf ioncube_loaders_lin_x86-64.tar.gz ioncube |
В зависомости от режима работы PHP
1 |
# nano /etc/php5/apache2/php.ini |
1 |
zend_extension = /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so |
1 |
# nano /etc/php5/cgi/php.ini |
1 |
zend_extension = /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so |
1 |
# nano /etc/php5/cli/php.ini |
1 |
zend_extension = /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so |
Перезапускаем Apache
Источники:
http://2centos.ru/stat/centos_ustanovka_ioncube_loader.htm/
http://hostingbloger.com/2011/08/28/ustanovka-ioncube-php-loader.html
https://billing.adivohost.com/knowledgebase.php?action=displayarticle&id=21
http://vps.ua/wiki/%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0_IonCube_Loader