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.

[root@gateway~]# 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

[ root@gateway ~]# 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
 

root@gateway:~# vi /etc/php.ini

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

root@gateway:~# service httpd restart

 

For Centos 7

[root@centos7]# vi /etc/php.ini

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

[root@centos7]# systemctl restart httpd

Centos 7 Nginx 

[root@centos7]# vi /etc/php.ini


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

[root@centos7]# systemctl restart nginx

 

 

For ubuntu 14
 

root@gateway:~# vi /etc/php5/cli/php.ini

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

root@gateway:~# vi /etc/php5/apache2/php.ini

 

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

root@gateway:~# apachectl restart

 

 
For Ubuntu 16

 

root@gateway :~# vi /etc/php/7.0/cli/php.ini

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

 

root@gateway:~# vi /etc/php/7.0/apache2/php.ini

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

 

root@gateway:~# apachectl restart

 
For Ubuntu 18

 

root@gateway :~# vi /etc/php/7.2/cli/php.ini

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

 

root@gateway:~# vi /etc/php/7.2/apache2/php.ini

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

 

root@gateway:~# apachectl restart 

 
For Debian 9
 

root@gateway :~# vi /etc/php/7.0/cli/php.ini

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

 

root@gateway:~# vi /etc/php/7.0/apache2/php.ini

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

 

root@gateway:~# apachectl restart 

 
For Nginx on Debain9
 

root@gateway :~# vi /etc/php/7.0/cli/php.ini

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

 

root@gateway:~# vi /etc/php/7.0/fpm/php.ini

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

  

root@gateway:~# systemctl reload nginx.service

root@gateway:~#  systemctl reload php7.0-fpm.service

 

[ root@gateway ~]# 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 (4)
Article Rating (4 Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    How to renew/update standalone license ?
    Viewed 304 times since Thu, Feb 27, 2020
    What operating systems and platforms are supported to install jump server?
    Viewed 3358 times since Wed, Jun 14, 2017
    The IP field must contain a valid public IP or how to install Ezeelogin on a machine in lan
    Viewed 3393 times since Wed, Jun 14, 2017
    How to secure SSH jump server / SSH bastion host / SSH gateway
    Viewed 5289 times since Thu, Jun 15, 2017
    Enable SSH Key based authentication and Disable Password Authentication in ssh
    Viewed 144 times since Tue, Apr 21, 2020
    Installing Jump server or Bastion host on a linux host in Google or AWS instance ?
    Viewed 2903 times since Thu, Sep 21, 2017
    How to install Ezeelogin with a standalone license ?
    Viewed 117 times since Tue, Mar 10, 2020
    Install slave / secondary node for high availability in jump server
    Viewed 3492 times since Wed, Jun 14, 2017
    Upgrade Ezeelogin Jump server to the latest version
    Viewed 4924 times since Thu, Aug 24, 2017