Operating Systems > Lunix & Unix

How to: install ionCube loaders on Linux server

(1/1)

admin:
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: ---wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.bz2
--- End code ---

      Wait until its finished:


--- Code: ---      --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]

--- End code ---
    * Extract the loader package:

     
--- Code: ---tar xvjf ioncube_loaders_lin_x86.tar.bz2
--- End code ---

    * Check your PHP version:

     
--- Code: ---php -v
--- End code ---

      You'll see something like this:

   
--- Code: ---  [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
--- End code ---

      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: ---cp ioncube/ioncube_loader_lin_5.1.so /usr/lib/php/modules/
--- End code ---

    * Add the module into PHP configuration file

     
--- Code: ---nano /etc/php.d/ioncube.ini
--- End code ---

    * Add the following line:

     
--- Code: ---zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.1.so
--- End code ---

    * Save and exit from nano.

     
--- Code: ---Ctrl + O
      Ctrl + X

--- End code ---
    * Restart Apache

     
--- Code: ---service restart httpd
--- End code ---


      OR

     
--- Code: --- /etc/init.d/httpd restart
--- End code ---

    * Verify the module:

     
--- Code: ---php -v
--- End code ---


      You'll see something like these:

   
--- Code: ---  [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.

--- End code ---
    * Done.

Good luck!

admin:
If you are using DirectAdmin you may use the following steps:


--- Code: ---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/
--- End code ---


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


In php.ini:


--- Code: ---zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
--- End code ---


Navigation

[0] Message Index

Go to full version