Knowledgebase: VPS Hosting
Installing Ioncube Loader
Posted by on 30 June 2014 07:55 AM

IonCube Loader is an encryption/decryption utility for PHP applications which also assists in speeding up your web pages.

You can install this on your VPS or Dedicated servers using root access. If you want to check whether IonCube Loader is installed, you can check it using the PHP configuration on your server

If you’ve got a cPanel with your VPS or Dedicated Servers, installing IonCube Loaders with cPanel & WHM can be done one of two ways:

1st Method: Using WHM

  1. Login to WHM

  2. Search for the Software section on the navigation to your left

  3. Click on "EasyApache (Apache Update)" in this section

  4. Follow the wizard to build your Apache profile.

  5. When you reach step 5  i.e. Exhaustive Options on the wizard, select "IonCube Loader for PHP"  

  6. Proceed with the wizard and build your Apache profile.

This may take some time. Sit back and relax while your entire Apache configuration is rebuilt by cPanel.

Enabling Ioncube

  1. Login to WHM

  2. Search for the Server Configuration section on tha navigation to your left

  3. Click on "Tweak Settings"

  4. Go the the PHP tab

  5. Select ioncube check box for cPanel PHP loader

  6. Click on Save

That's it. This will enable Ioncube for you.

2nd Method: Using SSH

  1. Access your server using SSH. (Click here know how)

  2. As the user ‘root’ via SSH, you can run the below command to install IonCube Loaders without having to recompile Apache:
    /scripts/phpextensionmgr install IonCubeLoader

That’s it. You got it installed easily there.


If you’ve don’t have a control panel like cPanel with your VPS or Dedicated Servers, do not worry. We’ll help you get it installed easily. So let’s start:

  1. Begin by downloading the latest loaders to your computer from

  2. Extract the contents of the archived file on your local PC to a folder of your choice.

  3. Upload the folder IONCUBE via FTP to your domain webspace

  4. Now access your server using SSH (Click here know how)

  5. Browse to the public folder where you’ve uploaded the IONCUBE directory (You can search the internet for changing and viewing the directory using commands in Unix)

  6. Move the ioncube folder to a permanent location by entering:
    mv ioncube /usr/local

  7. Now, you need to locate the php.ini file. to do this enter: locate php.ini - You should find it is in /usr/local/lib/php.ini. Now that you know the location of php.ini you need to edit it. Use the command:
    pico /usr/local/lib/php.ini

  8. Now find other zend extensions are in this file using the command:
    ctrl + w: zend_extension

  9. Paste in your new line for ioncube loader:
    zend_extension = /usr/local/ioncube/ (Replace x with your version of PHP eg. 4.4)

  10. Save the changes using the command ctrl + X then Y and hit enter

  11. Restart the web server using the following command for the changes to take effect: /etc/init.d/httpd restart

That's it! Ioncube should now be installed & working on your server. To verify the installation was successful, check the phpinfo file output for your server and you should see a new section which reads:

Additional Modules
Module Name ionCube Loader

(0 vote(s))
This article was helpful
This article was not helpful