Centos
|
…… i686 i686 i386 GNU/Linux |
Для 32-битных систем
|
# wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz |
Для 64-битных систем
|
# wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz |
|
# tar xvfz ioncube_loaders_lin_x86.tar.gz |
|
# mkdir /usr/local/ioncube |
|
# cp ioncube/ioncube_loader_lin_5.3* /usr/local/ioncube/ |
|
# nano /etc/php.d/ioncube.ini |
|
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so zend_extension_ts = /usr/local/ioncube/ioncube_loader_lin_5.3_ts.so |
|
# /etc/init.d/httpd restart |
|
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. |
|
ionCube Loader the ionCube PHP Loader |
Debian/Ubuntu(для примера используем 64-битную опер.систему и php версии 5.6)
|
# wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz |
|
# tar xvzf ioncube_loaders_lin_x86-64.tar.gz |
Определяем расположение каталога с расширениями PHP
|
# php -i | grep extension_dir |
|
extension_dir => /usr/lib/php5/20131226 => /usr/lib/php5/20131226 |
Например, на сервере установлена PHP версии 5.6
|
# cp /tmp/ioncube/ioncube_loader_lin_5.6.so /usr/lib/php5/20131226/ |
|
# rm -rf ioncube_loaders_lin_x86-64.tar.gz ioncube |
В […]