Installing IonCube Loader with cPanel on CentOS

Posted on by admin

There seems to be limited details of how this is done. It’s fairly simple to be honest, but I felt it could save somebody some time if it was documented.

In case you were wondering IonCube is a PHP encoder, usually used to stop people stealing your PHP code when you distribute it. Consequently to run the encoded PHP you require a “loader”, which will run it correctly.

If your server does not have IonCube loader installed these are the steps you need to take.

  1. Visit the IonCube loader page and choose a download for your operating system.
    • In this case we will be selecting the Linux (x86) “.tar.gz” download for CentOS 4.
  2. Use “cd” to go to your home directory (usually /root).
  3. You need to download the file, issue: wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
  4. Next, extract the files from the tarball, issue: tar zxvf ioncube_loaders_lin_x86.tar.gz
  5. We now need to move the directory to the correct path, issue: mv ioncube /usr/local
  6. Next we need to change our active directory, issue: cd /usr/local/ioncube
  7. We now need to find out where the “php.ini” is stored, issue: php ioncube-loader-helper.php page=install-assistant
    • You should see something similar to “<code>/usr/local/Zend/etc/php.ini</code>”.
    • Also take note of the part that says “ioncube_loader_lin_4.4.so” we will use this file later.
  8. Next we need to edit the file, issue: nano /usr/local/Zend/etc/php.ini
    • You can use any editor you like such as nano/pico or vi if you know what you’re doing.
  9. Find (ctrl+w) the “[Zend]” section of the “php.ini”, above the “zend_extension” line, place: zend_extension = /usr/local/ioncube/ioncube_loader_lin_4.4.so (followed by ctrl+x, Y then enter if using pico or nano).
  10. Finally issue: service httpd restart

Related posts:

  1. The requested URL /cpanel was not found on this server If you run cPanel servers, then you may at some...
  2. Installing Subversion on a cPanel Server It should be easy right? Just “yum install subversion”. Nope. You...
  3. Xen on CentOS Host running FreeBSD Guest Recently i’ve been investigating Xen. In short, Xen is open...
  4. Migrating IMAP mailboxes to a cPanel server A customer got in touch with us and explained their...
  5. Storing mySQL database settings for php and perl in one file I have a situation where there’s two scripts. The main...

About admin

The author formerly known as HM2K is now the Phurix Labs administrator.

This entry was posted in Sysadmin and tagged . Bookmark the permalink.

11 Responses to Installing IonCube Loader with cPanel on CentOS

  1. ozgur says:

    Thanks a lot..

  2. Ronnie Gilkey says:

    Thanks! You saved me a bunch of time.

  3. Nick says:

    Thanks for the clear instructions! I needed to delete my current directory first (rm -r /usr/local/ioncube) to install the new version, then everything was fine!

  4. kyio says:

    got Ioncube running on my machine. thanks

  5. Claude says:

    Champion!!! They need this on the Ioncube Website :)
    Very noob friendly

  6. MP says:

    Thanks!!!!!!!!

  7. Luke Carrier says:

    EasyApache (under Software, Apache Update in WHM) can install this for you – just customise the profile BEFORE you continue with the build process. It doesn’t install the latest version, though :/

    Luke.

  8. Oleg says:

    What the f*cking way, in future newbies will be have problems, because it will be conflicting with cpanel ioncube :)

    use /scripts/easyapache

  9. hm2k says:

    @Oleg You donkey. This is when cPanel didn’t support IonCube.

  10. Lohit says:

    We now need to move the directory to the correct path, issue: mv ioncube /usr/local

    This step is not working . Please can u help me. Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>