You can download the ionCube loader for Windows.After downloading and extracting the files on your server, copy the loader extension for your PHP version (e.g. Ioncubeloaderwin7.2.dll) to your PHP's ext directory (usually C:Program Files (x86)PHP7.2ext or similar). Now activate the extension by adding the following line to your PHP.ini file (please adjust the directory accordingly and use two backslashes as directory separator). You must specify the full path to the file. Please note: In order for IIS to be able to load the extension, it might be needed to change the permission of the ionCube extension file.
Secure and license PHP scripts with the new ionCube PHP Encoder 10.2. Encoded files and add website security using ionCube24 with the ionCube Loader.
To do this, right-click the file in Explorer, Properties, select the Security tab and add the Users group.To reload PHP, you now need to restart the IIS web server. The easiest way to do is to restart the World Wide Web Publishing Windows service. You can do this by opening the Services application from the Administrative Tools and restarting the service (please note that this restarts all IIS application pools and websites; if you are hosting other websites and applications on this server, you might want to restart the relevant application pool only).Installing ionCube on Unix/Linux.
You can download the ionCube loader wizard. Then, extract all of the files and copy the ioncube folder to your web server (e.g. /var/www/html).Navigate to localhost/ioncube/loader-wizard.php. This will prompt the loader-wizard to identify the exact IonCube loader needed for your system and PHP version.
After downloading and extracting the files on your web server, place the files in a directory of your choice, for example /opt/ioncube.To activate ionCube, add the relevant ionCube loader extension to your PHP.ini. To do this, make sure to use the zendextension configuration directives and specify the full path to the extension:zendextension=/opt/ioncube/ioncubeloaderlin7.2.soIf you are using a different PHP version (e.g. PHP 7.0 or PHP 7.1), please make sure to specify the corresponding version of the ionCube loader. For example, for PHP 7.1 you would need to load the ionCube loader as follows instead (note the different version in the file name):zendextension=/opt/ioncube/ioncubeloaderlin7.1.soIf you are unsure which ionCube extension you need to activate for your server system, please copy the loader-wizard.php script to your web server directory and access it from your web browser and follow the installation instructions. After installing the extensions, please restart your web server to load the newly installed extensions.You can verify that the ionCube loader extension has been successfully installed by running php -v. Please note though that the PHP command line interface might use a different configuration file than the PHP version that is used by your web server.
Please make sure that ionCube is activated in all relevant PHP.ini configuration files. The ionCube loader extension is successfully installed if php -v outputs something like this (note the ionCube PHP Loader line):PHP 7.2.12 (cli) (built: Nov 12 2018 xx:xx)Copyright (c) 1998-2018 The PHP GroupZend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologieswith the ionCube PHP Loader v10.2.7, Copyright (c) 2002-2018, by ionCube Ltd.
On this page.The Ioncube loader is a PHP module to load files that were protected with the Ioncube Encoder software. Ioncube is often used by commercial PHP software vendors to protect their software, so it is likely that you come across an Ioncube encoded file sooner or later when you install extensions for CMS or Shop software written in PHP. In this tutorial, I will explain the installation of the Ioncube loader module in detail for CentOS, Debian, and Ubuntu. 1 PrerequisitesYour server must have the PHP programming language installed. I will use the command line Editor Nano and the command line download application wget. Nano and Wget are installed on most servers, in case they are missing on your server then install them with apt / yum. CentOS yum install nano wget Debian and Ubuntu apt-get install nano wget 2 Download Ioncube LoaderThe Ioncube loader files can be downloaded free of charge from Ioncube Inc. They exist for 32Bit and 64Bit Linux systems.In the first step, I will check if the server is a 32Bit or 64Bit system.
Run: uname -aThe output will be similar to this:When the text contains 'x8664' then the server runs a 64Bit Linux Kerbel. Otherwise, it's a 32Bit (i386) Kernel. Most current Linux servers run a 64Bit Kernel.Download the Loader in tar.gz format to the /tmp folder and unpack it:For 64Bit x8664 Linux: cd /tmpwget xfz ioncubeloaderslinx86-64.tar.gzFor 32Bit i386 Linux: cd /tmpwget xfz ioncubeloaderslinx86.tar.gzThe files get unpacked into a folder with the name 'ioncube'. 3 Which Ioncube Loader is the right one?When you run ' ls /tmp/ioncube' then you see that there are many loader files in the ioncube directory.The files have a number that corresponds with the PHP version they are made for and there is also a 'ts' (Thread Safe) version of each loader. We will use the version without thread safety here.To find out the installed php version, run the command: php -vThe output will be similar to this:For this task, only the first two digits of the version number in the first result line matter, on this server I'll run PHP 7.0. We note this number as we need it for the next steps.Now it's time to find out where the extension directory of this PHP version is, run the following command to find the directory name: php -i grep extensiondirThe output should be similar to the one from this screenshot:I marked the path in the screenshot, the extension directory on this server is '/usr/lib/php/20151012'.
The directory name will be different for each PHP version and Linux distribution, just use the one you get from the command and not the one that I got here.No well copy the ioncube loader for our PHP version 7.0 to the extension directory /usr/lib/php/20151012: cp /tmp/ioncube/ioncubeloaderlin7.0.so /usr/lib/php/20151012/Replace '7.0' in the above with your PHP version and '/usr/lib/php/20151012 ' with the extension directory of your PHP version. 4 Configure PHP for the Ioncube LoaderThe next configuration step is a bit different for Centos and Debian/Ubuntu. We will have to add a line: zendextension = /usr/lib/php/20151012 /ioncubeloaderlin7.0.soas first line into the php.ini file(s) of the system. Again, the above path contains the extension directory '/usr/lib/php/20151012 ' and the PHP version '7.0', ensure that you replace them to match your system setup. I'll start with the instructions for CentOS. 4.1 Configure Ioncube loader on CentOSCentos has just one central php.ini file where we have to add the ioncube loader to. Open the file /etc/php.ini with an editor: nano /etc/php.iniand add 'zendextension =' plus the path to the ioncube loader as the first line in the file.
Zendextension = /usr/lib/php/20151012 /ioncubeloaderlin7.0.soThen save the file and restart the Apache web server: service httpd restartservice php-fpm restart4.2 Configure Ioncube loader on Debian and UbuntuDebian and Ubuntu use separate php.ini files for PHP CLI (Commandline), CGI, Apache2 and FPM mode. The file paths are:. /etc/php/7.0/apache2/php.ini.
/etc/php/7.0/cli/php.ini. /etc/php/7.0/cgi/php.ini. /etc/php/7.0/fpm/php.iniA file has to be edited to enable the ioncube loader into the corresponding PHP mode. You are free to leave out files for PHP modes that you don't use or where you don't need ioncube loader support.
It is also possible that you don't have all files on your server, so don't worry when you can't find one of the files.Apache modphp nano /etc/php/7.0/apache2/php.iniCommand line PHP (CLI) nano /etc/php/7.0/cli/php.iniPHP CGI (used for CGI and FastCGI modes) nano /etc/php/7.0/cgi/php.iniPHP FPM nano /etc/php/7.0/fpm/php.iniand add 'zendextension =' plus the path to the ioncube loader as the first line in the file(s). Zendextension = /usr/lib/php/20151012/ioncubeloaderlin7.0.soThen save the file(s) and restart the Apache web server and php-fpm: service apache2 restartservice php7.0-fpm restart 5 Test IoncubeLet's check if ioncube loader has been installed successfully.
First I will test the command line PHP. Run: php -vI marked the line in white that shows that the ioncube loader has been enabled: with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.0, Copyright (c) 2002-2018, by ionCube Ltd.If you like to test the PHP of a website, create an 'info.php file with this content: And open the URL in a web browser. You will be able to see ioncube in the phpinfo output:6 Links.About Till BrehmOver 20 years experience as Software Developer and Linux System Administrator. Till Brehm is the founder and lead developer of the ISPConfig Hosting Control Panel software (since 2000) and he founded HowtoForge in 2005 as a place to share Linux knowledge with other Linux enthusiasts. Hi,I have problem,when I copy php -i grep extensiondir to console and hit enter:bash-3.2# php -i grep extensiondirCannot load the ionCube PHP Loader - it was built with configuration API220090626,NTS, whereas running engine is API220100525,NTSZend Guard Loader requires Zend Engine API version 220090626.The Zend Engine API version 220100525 which is installed, is newer.Contact Zend Technologies at for a later version of Zend Guard Loader.extensiondir =./ =./sqlite3.extensiondir = no value = no valuebash-3.2#What now?I have CentOS release 5.11 final 64bit.
Hi, I have a question, I'm installed ispconfig in ubuntu 18.04, I followed the installation guide, and I need to install softaculous, which I asked for ioncube.In the ispconfig directory the system installs PHP7.2I must add other versions of PHP 5.6 / 7.0 / 7.1For different versions of wordpress.My question is whether I should add the linezendextension = /usr/lib/php/20151012/ioncubeloaderlin5.6.sozendextension = /usr/lib/php/20151012/ioncubeloaderlin7.0.sozendextension = /usr/lib/php/20151012/ioncubeloaderlin7.1.soin each PHP version or with adding to 7.2 is enoughThank you.
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |