399€

Become a Reseller

APPBUILDER

Reseller whit platform

Siberian&Nwicode

How to Install ionCube Loader in CentOS 7

ionCube is a commercial software suite consisting of a PHP encoder, package foundry, bundler, a real time site intrusion detection and error reporting application as well as a loader.

PHP encoder is an application for PHP software protection: used to secure, encrypt and license PHP source code. ionCube loader is an extension used to load PHP files protected and encoded using PHP encoder. It is mostly used in commercial software applications to protect their source code and prevent it from being visible.

Read Also: How to Install ionCube Loader in Debian and Ubuntu

In this article, we will show how to install and configure ionCube Loader with PHP in CentOS 7 and RHEL 7 distributions.

Prerequisites:

Your server must have a running web server (Apache or Nginx) with PHP installed. If you don’t have a web server and PHP on your system, you can install them using yum package manager as shown.

Step 1: Install Apache or Nginx Web Server with PHP

1. If you already have a running web server Apache or Nginx with PHP installed on your system, you can jump to the Step 2, otherwise use the following yum command to install them.

-------------------- Install Apache with PHP --------------------
# yum install httpd php php-cli	php-mysql

-------------------- Install Nginx with PHP -------------------- 
# yum install nginx php php-fpm php-cli	php-mysql

2. After installing Apache or Nginx with PHP on your system, start the web server and make sure to enable it to auto start at system boot time using following commands.

-------------------- Start Apache Web Server --------------------
# systemctl start httpd
# systemctl enable httpd

-------------------- Start Nginx + PHP-FPM Server --------------------
# systemctl start nginx
# systemctl enable nginx
# systemctl start php-fpm
# systemctl enable php-fpm

Step 2: Download IonCube Loader

3. Go to the inocube’s website and download the installation files, but before that first you need to check whether your system is running on 64-bit or 32-bit architecture using the following command.

# uname -a

Linux appteam.it 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

The above output clearly shows that the system is running on 64-bit architecture.

As per your Linux system architecture type download the ioncube loader files into /tmp directory using following wget command.

-------------------- For 64-bit System --------------------
# cd /tmp
# wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

-------------------- For 32-bit System --------------------
# cd /tmp
# wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

4. Then unzip the downloaded file using the tar command and move into the decompressed folder. Then run the ls command to list the numerous ioncube loader files for different PHP versions.

# tar -zxvf ioncube_loaders_lin_x86*
# cd ioncube/
$ ls -l
totale 33760
-rw-rw-r-- 1 507 507 472016 1 set 12.01 ioncube_loader_lin_4.1.so
-rw-rw-r-- 1 507 507 471824 1 set 12.01 ioncube_loader_lin_4.2.so
-rw-rw-r-- 1 507 507 472496 1 set 12.01 ioncube_loader_lin_4.3.so
-rw-rw-r-- 1 507 507 490960 1 set 12.01 ioncube_loader_lin_4.3_ts.so
-rw-rw-r-- 1 507 507 475472 1 set 12.01 ioncube_loader_lin_4.4.so
-rw-rw-r-- 1 507 507 495088 1 set 12.01 ioncube_loader_lin_4.4_ts.so
-rw-rw-r-- 1 507 507 484752 1 set 12.01 ioncube_loader_lin_5.0.so
-rw-rw-r-- 1 507 507 498832 1 set 12.01 ioncube_loader_lin_5.0_ts.so
-rw-rw-r-- 1 507 507 1116912 1 set 12.01 ioncube_loader_lin_5.1.so
-rw-rw-r-- 1 507 507 1155248 1 set 12.02 ioncube_loader_lin_5.1_ts.so
-rw-rw-r-- 1 507 507 1139888 1 set 12.02 ioncube_loader_lin_5.2.so
-rw-rw-r-- 1 507 507 1176304 1 set 12.02 ioncube_loader_lin_5.2_ts.so
-rw-rw-r-- 1 507 507 1234840 1 set 12.02 ioncube_loader_lin_5.3.so
-rw-rw-r-- 1 507 507 1288600 1 set 12.03 ioncube_loader_lin_5.3_ts.so
-rw-rw-r-- 1 507 507 1525136 1 set 12.03 ioncube_loader_lin_5.4.so
-rw-rw-r-- 1 507 507 1612240 1 set 12.04 ioncube_loader_lin_5.4_ts.so
-rw-rw-r-- 1 507 507 1537840 1 set 12.04 ioncube_loader_lin_5.5.so
-rw-rw-r-- 1 507 507 1620912 1 set 12.05 ioncube_loader_lin_5.5_ts.so
-rw-rw-r-- 1 507 507 1504576 1 set 12.06 ioncube_loader_lin_5.6.so
-rw-rw-r-- 1 507 507 1565920 1 set 12.06 ioncube_loader_lin_5.6_ts.so
-rw-rw-r-- 1 507 507 1270728 1 set 12.07 ioncube_loader_lin_7.0.so
-rw-rw-r-- 1 507 507 1328232 1 set 12.07 ioncube_loader_lin_7.0_ts.so
-rw-rw-r-- 1 507 507 1377624 1 set 12.08 ioncube_loader_lin_7.1.so
-rw-rw-r-- 1 507 507 1457240 1 set 12.08 ioncube_loader_lin_7.1_ts.so
-rw-rw-r-- 1 507 507 1432072 1 set 12.09 ioncube_loader_lin_7.2.so
-rw-rw-r-- 1 507 507 1506312 1 set 12.09 ioncube_loader_lin_7.2_ts.so
-rw-rw-r-- 1 507 507 1341112 1 set 12.10 ioncube_loader_lin_7.3.so
-rw-rw-r-- 1 507 507 1407096 1 set 12.10 ioncube_loader_lin_7.3_ts.so
-rw-rw-r-- 1 507 507 1361512 1 set 12.11 ioncube_loader_lin_7.4.so
-rw-rw-r-- 1 507 507 1422472 1 set 12.12 ioncube_loader_lin_7.4_ts.so
-rw-r--r-- 1 507 507 10768 27 feb 2020 LICENSE.txt
-rw-r--r-- 1 507 507 180424 13 lug 16.02 loader-wizard.php
-rw-r--r-- 1 507 507 4078 1 set 12.13 README.txt
-rw-r--r-- 1 507 507 41587 1 set 12.13 USER-GUIDE.pdf
-rw-r--r-- 1 507 507 10975 1 set 12.13 USER-GUIDE.txt

Step 3: Install ionCube Loader for PHP

5. There will be different ioncube loader files for various PHP versions, you need to select the right ioncube loader for your installed PHP version on your server. To know the php version installed on your server, run the command.

# php -v
PHP 7.3.22 (cli) (built: Sep 1 2020 09:44:58) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.22, Copyright (c) 1998-2018 Zend Technologie

The above output clearly shows that the system is using PHP 7.3.22 version, in your case it should be different version.

6. Next, find the location of the extension directory for PHP version 7.3, it is where the ioncube loader file will be installed. From the output of this command, the directory is /usr/lib64/php/modules.

# php -i | grep extension_dir

extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules

7. Next we need to copy ioncube loader for our PHP 7.3 version to the extension directory (/usr/lib64/php/modules).

# cp /tmp/ioncube/ioncube_loader_lin_7.3.so /usr/lib64/php/modules

Note: Make sure to replace the PHP version and extension directory in the above command according to your system configuration.

Step 4: Configure ionCube Loader for PHP

8. Now we need to configure ioncube loader to work with PHP, in the php.ini file.

# vim /etc/php.ini

Then add below line as the first line in the php.ini file.

[PHP]

zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.3.so

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

Enable ionCube Loader in PHP

Note: Make sure to replace the extension directory and PHP version in the above command according to your system configuration.

9. Then save and exit the file. Now we need to restart the Apache or Nginx web server for the ioncube loaders to come into effect.

-------------------- Start Apache Web Server --------------------
# systemctl restart httpd

-------------------- Start Nginx + PHP-FPM Server --------------------
# systemctl restart nginx
# systemctl restart php-fpm

Step 5: Test ionCube Loader

10. To test if ionCube loader is now installed and properly configured on your server, check your PHP version once more. You should be able to see a message indicating that PHP is installed and configured with the ioncube loader extension (status should be enabled), as shown in the following screenshot.

# php -v
PHP 7.3.22 (cli) (built: Sep 1 2020 09:44:58) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.22, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.
with Zend OPcache v7.3.22, Copyright (c) 1999-2018, by Zend Technologies

The above output confirms that the PHP is now loaded and enabled with ioncube loader.

ionCube loader is a PHP extension for loading files secured and encoded with PHP encoder. We hope that everything worked on fine while following this guide, otherwise, use the feedback form below to send us your queries.

Debian and Ubuntu distributions

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Appteam to offer you a better experience on this site uses its own and third-party technical, analytical and profiling cookies. The site also uses third-party tracking cookies to adapt advertising to your preferences.

If you want to know more or refuse consent to the use of cookies click here. By continuing to browse, you consent to the use of cookies.

Privacy Settings saved!
GDPR Center

When you visit a website, it can store or retrieve information on your browser, mainly in the form of cookies. Check your personal cookie services here.

These cookies are necessary for the website to function and cannot be disabled in our systems.

In order to use this website we use the following technically required cookies
  • wordpress_logged_in_
  • wordpress_sec
  • wordpress_test_cookie

We use WooCommerce as a purchasing system. 2 cookies will be stored for the shopping cart and order processing. These cookies are strictly necessary and cannot be disabled.
  • woocommerce_cart_hash
  • woocommerce_items_in_cart

  • wordpress_test_cookie
  • wordpress_logged_in_
  • wordpress_sec

Decline all Services
Accept all Services

Main Menu