Search Atomic Repository For ionCube Loader RPM Package:

[root@dev ~]# yum whatprovides *ioncube*
Loading "allowdowngrade" plugin
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * atomic:
filelists.xml.gz          100% |=========================| 263 kB    00:00
php-ioncube-loader.i386 : PHP Ioncube Loader
php-ioncube-loader.i386 : PHP Ioncube Loader
psa-atmail.noarch : The @mail webmail adopted for Plesk
psa-atmail.noarch : The @mail webmail adopted for Plesk
psa-atmail.noarch : The @mail webmail adopted for Plesk
psa-atmail.noarch : The @mail webmail adopted for Plesk

After verifying that the Atomic repo does include the php-ioncube-loader RPM package I needed to install the Atomic repository on the new server. You can install Atomic on CentOS or other Linux systems using the Yum Package Manager by using the below syntax.

Install Atomic Yum Repository On CentOS Linux:

[root@dev2 src]# wget -q -O - |sh
Atomic Archive installer, version 1.1
Configuring the [atomic] yum archive for this system
Installing the Atomic GPG key: OK
Downloading OK
The Atomic Rocket Turtle archive has now been installed and configured for your system
The following channels are available:
  atomic          - [ACTIVATED] - contains the stable tree of ART packages
  atomic-testing  - [DISABLED]  - contains the testing tree of ART packages
  atomic-bleeding - [DISABLED]  - contains the development tree of ART packages

Now that the Atomic repository is installed on your Linux server you can move forward with installing the PHP ionCube Loader package by using the syntax below. It is likely that there will be some other PHP dependencies installed along with the php-ioncube-loader RPM package so don’t be alarmed if multiple packages are installed at the same time.

Install PHP ionCube Loader On A CentOS Linux Server:

[root@dev2 src]# yum install php-ioncube-loader
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons:
 * atomic:
 * base:
 * centosplus:
 * epel:
 * extras:
 * rpmforge:
 * updates:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-ioncube-loader.i386 set to be updated
--> Processing Dependency: php-devel for package: php-ioncube-loader
--> Running transaction check
---> Package php-devel.i386 set to be updated
--> Processing Dependency: php = for package: php-devel
--> Running transaction check
---> Package php.i386 set to be updated
--> Processing Dependency: php-cli = for package: php
--> Processing Dependency: php-common = for package: php
--> Running transaction check
---> Package php-cli.i386 set to be updated
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-mysql
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-pdo
--> Processing Dependency: php-common = 5.1.6-23.2.el5_3 for package: php-ldap
---> Package php-common.i386 set to be updated
--> Running transaction check
---> Package php-ldap.i386 set to be updated
---> Package php-mysql.i386 set to be updated
---> Package php-pdo.i386 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
 Package                              Arch                   Version                                 Repository                Size
 php-ioncube-loader                   i386                               atomic                   906 k
Installing for dependencies:
 php-devel                            i386                                 atomic                   579 k
Updating for dependencies:
 php                                  i386                                 atomic                   1.2 M
 php-cli                              i386                                 atomic                   2.4 M
 php-common                           i386                                 atomic                   272 k
 php-ldap                             i386                                 atomic                    33 k
 php-mysql                            i386                                 atomic                    82 k
 php-pdo                              i386                                 atomic                    63 k
Transaction Summary
Install      2 Package(s)
Update       6 Package(s)
Remove       0 Package(s)
Total download size: 5.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/8):                                                                    |  33 kB     00:00
(2/8):                                                                     |  63 kB     00:00
(3/8):                                                                   |  82 kB     00:00
(4/8):                                                                  | 272 kB     00:00
(5/8):                                                                   | 579 kB     00:00
(6/8):                                                          | 906 kB     00:00
(7/8):                                                                         | 1.2 MB     00:01
(8/8):                                                                     | 2.4 MB     00:02
Total                                                                                               929 kB/s | 5.5 MB     00:06
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : php-common                                                                                                  1/14
warning: /etc/php.ini created as /etc/php.ini.rpmnew
  Updating       : php-pdo                                                                                                     2/14
  Updating       : php-cli                                                                                                     3/14
  Updating       : php                                                                                                         4/14
  Updating       : php-mysql                                                                                                   5/14
  Updating       : php-ldap                                                                                                    6/14
  Installing     : php-devel                                                                                                   7/14
  Installing     : php-ioncube-loader                                                                                          8/14
  Cleanup        : php-common                                                                                                  9/14
  Cleanup        : php-ldap                                                                                                   10/14
  Cleanup        : php                                                                                                        11/14
  Cleanup        : php-mysql                                                                                                  12/14
  Cleanup        : php-cli                                                                                                    13/14
  Cleanup        : php-pdo                                                                                                    14/14
Dependency Installed:
Dependency Updated:
  php.i386               php-cli.i386            php-common.i386
  php-ldap.i386          php-mysql.i386          php-pdo.i386



ionCube produces leading tools for PHP source code protection to secure your PHP software from prying eyes and to combat software piracy. Featuring an advanced compiled-code encoding engine that translates source to highly efficient bytecodes, ionCube encoding tools deliver the ideal combination of maximum source code protection without sacrificing performance, reliability or language compatibility.

In order to view encoded ionCube files on your server you need the ionCube loader. This is a free plugin for Apache web server that only takes a few minutes to install and is well worth it.

- Root Shell access to your server
- phpinfo page: create a new document and call it phpinfo.php. Inside place phpinfo();
Place this document in your www directory so you can view it and see all your PHP settings.

Installing ionCube Loader:

1. Download the program and store it on your server using wget or FTP.

2. Unpack the program
tar -zxvf ioncube_loaders.tar.gz

3. cd ioncube

4. copy ioncube-install-assistant.php to a web directory such as your hosting directory and open it in your browser window.
cp ioncube-install-assistant.php /home/userdirectoryhere/www

Then open it
The output should be something similar to:

Analysis of your system configuration shows:

PHP Version 4.3.3
Operating System Linux
Threaded PHP No
php.ini file /usr/local/lib/php.ini
Required Loader

5. Now lets move the iconcube directory to a permanent location:
cd ..
mv ioncube /usr/local

6. Now that you know the location of php.ini you need to edit it.
pico /usr/local/lib/php.ini

Now find where other zend extentions are in the file.
ctrl + w: zend_extension

Paste in your new line for ioncube loader
zend_extension = /usr/local/ioncube/

7. Save the changes
ctrl + X then Y and enter

8. Restart the web server to take effect.
/etc/init.d/httpd restart

Success! You should now see a section in your PHP Info page that says:
Additional Modules
Module Name ionCube Loader