How to install ioncube on jump server?

 How to install ioncube on  jumpserver or bastion host?

  You would need root access to the server

1. Download the latest ioncube version from the site 

You would need to identify your system architecture whether its 32 or 64 bit.

The following command would help you with it.

[[email protected]~]# file /bin/ping

/bin/ping: setuid ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, stripped

As you can see, its 64 bit architecture.
Download the ioncube package for 64 bit and untar it /usr/local/ioncube

wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

tar -zxf ioncube_loaders_lin_x86-64.tar.gz && mv ioncube /usr/local

 
2.Identify the php version your are running

[ [email protected] ~]# php -v

PHP 5.3.3 (cli) (built: Aug 6 2014 11:41:05)

 
3. Edit the php configuration file & Add corresponding ioncube loader
Load the Iocube version corresponding to your PHP version only.
For example, If you have PHP Version 5.5 , The ioncube loader should be ioncube_loader_lin_5.5.so
For Centos 6
 

[email protected]:~# vi /etc/php.ini

zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so

[email protected]:~# service httpd restart

 

For Centos 7

[[email protected]]# vi /etc/php.d/20ioncube.ini

[zend]
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4.so

[[email protected]]# systemctl restart httpd

 
For ubuntu 14
 

[email protected]:~# vi /etc/php5/cli/php.ini

zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.5.so

[email protected]:~# vi /etc/php5/apache2/php.ini

 

zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.5.so

[email protected]:~# apachectl restart

 

 
For Ubuntu 16

 

[email protected] :~# vi /etc/php/7.0/cli/php.ini

zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.0.so

 

[email protected]:~# vi /etc/php/7.0/apache2/php.ini

zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.0.so

 

[email protected]:~# apachectl restart

 
For Ubuntu 18

 

[email protected] :~# vi /etc/php/7.2/cli/php.ini

zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.2.so

 

[email protected]:~# vi /etc/php/7.2/apache2/php.ini

zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.2.so

 

[email protected]:~# apachectl restart 

 
For Debian 9
 

[email protected] :~# vi /etc/php/7.0/cli/php.ini

zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.0.so

 

[email protected]:~# vi /etc/php/7.0/apache2/php.ini

zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.0.so

 

[email protected]:~# apachectl restart 

 
For Nginx on Debain9
 

[email protected] :~# vi /etc/php/7.0/cli/php.ini

zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.0.so

 

[email protected]:~# vi /etc/php/7.0/fpm/php.ini

zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.0.so

  

[email protected]:~# systemctl reload nginx.service

[email protected]:~#  systemctl reload php7.0-fpm.service

 

[ [email protected] ~]# php -v

PHP 5.3.3 (cli) (built: Aug 6 2014 11:41:05)

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.0, Copyright (c) 2002-2013, by ionCube Ltd.

 

Ensure that ioncube decoders are loaded by viewing the php configuration page.

vi /var/www/html/phpinfo.php

<? php

phpinfo();

?>

 

 Open the phpinfo page and it would show the ioncube version that has been loaded. As you can see ionCube version 10.2.0 has been loaded.

phpinfo

5 (2)
Article Rating (2 Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    What operating systems and platforms are supported to install jump server?
    Viewed 1589 times since Wed, Jun 14, 2017
    Installing Jump server or Bastion host on a linux host in Google or AWS instance ?
    Viewed 1395 times since Thu, Sep 21, 2017
    Upgrade Jump server or Bastion host installation?
    Viewed 1817 times since Thu, Aug 24, 2017
    Install slave / secondary node for high availability in jump server
    Viewed 1216 times since Wed, Jun 14, 2017
    How to secure SSH jump server / SSH bastion host / SSH gateway
    Viewed 2289 times since Thu, Jun 15, 2017
    The IP field must contain a valid public IP or how to install Ezeelogin on a machine in lan
    Viewed 1512 times since Wed, Jun 14, 2017