Author Topic: How to: install ionCube loaders on Linux server  (Read 6052 times)

Offline admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 296
    • View Profile
How to: install ionCube loaders on Linux server
« on: March 28, 2011, 11:55:41 PM »
IonCube loader is the PHP extension that decodes encrypted PHP files at runtime. Most commercial hosting companies have ionCube loader installed already. But if this is not your case, here's how to install the loader.

Steps:

    * Login via SSH to your server as root

    * Download the loader from ionCube:

     
Code: [Select]
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2
      Wait until its finished:

Code: [Select]
      --09:20:50--  http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2
      Resolving downloads2.ioncube.com... 72.9.241.122
      Connecting to downloads2.ioncube.com|72.9.241.122|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 2436435 (2.3M) [application/x-bzip2]
      Saving to: `ioncube_loaders_lin_x86.tar.bz2'

      100%[====================================================================================================================>] 2,436,435   25.8K/s   in 93s

      09:22:26 (25.6 KB/s) - `ioncube_loaders_lin_x86.tar.bz2' saved [2436435/2436435]
    * Extract the loader package:

     
Code: [Select]
tar xvjf ioncube_loaders_lin_x86.tar.bz2
    * Check your PHP version:

     
Code: [Select]
php -v
      You'll see something like this:

   
Code: [Select]
  [root@]# php -v
      PHP 5.1.6 (cli) (built: May 24 2008 14:07:53)
      Copyright (c) 1997-2006 The PHP Group
      Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

      So, my PHP version is: 5.1
      The ionCube module I'll be used is: ioncube_loader_lin_5.1.so

    * Copy the ionCube module to PHP modules directory.

     
Code: [Select]
cp ioncube/ioncube_loader_lin_5.1.so /usr/lib/php/modules/
    * Add the module into PHP configuration file

     
Code: [Select]
nano /etc/php.d/ioncube.ini
    * Add the following line:

     
Code: [Select]
zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.1.so
    * Save and exit from nano.

     
Code: [Select]
Ctrl + O
      Ctrl + X
    * Restart Apache

     
Code: [Select]
service restart httpd

      OR

     
Code: [Select]
/etc/init.d/httpd restart
    * Verify the module:

     
Code: [Select]
php -v

      You'll see something like these:

   
Code: [Select]
  [root@]# php -v
      PHP 5.1.6 (cli) (built: May 24 2008 14:07:53)
      Copyright (c) 1997-2006 The PHP Group
      Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
          with the ionCube PHP Loader v3.3.11, Copyright (c) 2002-2010, by ionCube Ltd.
    * Done.

Good luck!

Offline admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 296
    • View Profile
Re: How to: install ionCube loaders on Linux server
« Reply #1 on: April 17, 2011, 03:45:55 AM »
If you are using DirectAdmin you may use the following steps:

Code: [Select]
cd /root/
wget downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -zxvf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
mkdir /usr/local/ioncube/
cp ioncube_loader_lin_5.2.so /usr/local/ioncube/


Note: Replace x86-64 with i386 for a 32 bit OS


In php.ini:

Code: [Select]
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so