Loading...

Knowledge Base
Up to 75% off on hosting for WordPress websites and online stores

IonCube Installation

IonCube is an encryption/decryption tool for PHP applications where data can be secured. It also restricts unauthorized PHP applications and can assist in optimizing your website's pages. IonCube loaders decode encoded files while running on a web server. To learn more about this, please visit their official site.


Our servers are IonCube compatible. If you need IonCube to use a script on your website, install it for your Apache/PHP installation. If you need IonCube to access scripts from within the /cpanel, /whm, or /webmail interface, install it for cPanel/WHM/Webmail installation. There are different methods for each, and the instructions for doing both are discussed in the sections below:


IonCube Installation for cPanel/WHM/Webmail

IonCube Installation via the WHM

Initially, you need to enable the IonCube loader for plugins that use cPanel's version of PHP, like Softaculous. To use this GUI installation method, you must have administrative privileges, such as the root password.

Note: This section only covers enabling IonCube in cPanel's internal version of PHP. If you want to activate IonCube for your public website, use Easy Apache 4 in WHM. Instructions on these can be found in the next section.

  1. Log into WHM.
  2. Using the search bar on the left, look for the Server Configuration section and click Tweak Settings from the list.
    ioncube-tweak-settings
  3. Navigate to the PHP tab or use the find box and type loader.
    loader-search-under-php-tab
  4. Click the check box next to Ioncube and hit on the Save button.
    ioncube-check-and-save-button

IonCube Installation via the CLI

To complete this task, you must have shell access to the server as the user root (ex, ssh client like Putty).

  1. Log in to the shell as the user root.
  2. Edit /etc/cpanel/cpanel.config and find the line that starts with phploader=. If there's no value after the equal sign, you can append Ioncube to it (ex: phploader=ioncube). If there's another loader already in place, you can add your new loader by adding a comma first and then adding your loader (ex: phploader=someloader,ioncube)
  3. Next, execute the following command:
     /usr/local/cpanel/whostmgr/bin/whostmgr2 –updatetweaksettings
  4. And then /usr/local/cpanel/bin/checkphpini
  5. And finally, /usr/local/cpanel/bin/install_php_inis


IonCube Installation for Apache/PHP

IonCube Installation using the CLI version of PHPExtensionManager

This is the most preferred method because all it does is install the loaders. It doesn't require you to rebuild Apache and PHP. Thus making it the fastest method. To use this method, you need shell access to the server as the user root via either the console or SSH.

  1. Log in to the console as root.
  2. Run this command:
     /scripts/phpextensionmgr IonCube Installation

After installing ionCube Loader, You can verify it by the Linux command line using the command below: 

php -v

We can also create a small PHP script (info.php) in your web server document root using the following content to access the webpage..

<?php	
    phpinfo();	
?>

Now, access the created PHP script in a web browser, and you will find that the ionCube loader is enabled during your PHP installation.

IonCube Installation using the WHM

Note: This method uses the GUI version of EasyApache to install the Ioncube loader; if you do not want to rebuild Apache and PHP, don't use this method.

  1. Log in to the WHM as the user root.
  2. On the left-hand side, scroll down and click the EasyApache link
  3. Under Profile, select Previous Saved Config and click the Start customizing based on profile button.
  4. Under Apache Version, click Next Step
  5. Under PHP Version, click Next Step
  6. Under Short Options List, check the Ioncube Loader for PHP option and click the Save and Build button.
  7. This process will take a while to complete, roughly 10-30 minutes, depending on your hardware.

IonCube Installation using the CLI version of EasyApache

This method requires shell access as the user root via either the console or SSH.

  1. Log in to the console as root.
  2. Run this command:
    /scripts/easyapache
  3. Select Previously Saved Config and then select Start customizing based on profile.
  4. Under Apache Version, choose Next Step.
  5. Under PHP Version, select Next Step.
  6. Under Short Option Lists, check the IonCube Loader for PHP and then select Save and Build.
  7. This process will take a while to complete, roughly 10-30 minutes, depending on your hardware.

Important: For these changes to apply to any site or files hosted outside your public_html directory, you must change your PHP settings to use Single php.ini or FastCGI. For instructions on doing this, please see our article, PHP Config.

Summary

IonCube is a software tool that provides encryption and decryption services to PHP applications. It's a powerful tool that helps you secure your PHP applications by restricting unauthorized access. Our servers are fully compatible with IonCube, and we have detailed instructions on IonCube installation for cPanel/WHM/Webmail and Apache/PHP installations.

Whether you choose the IonCube installation via a graphical user interface (GUI) or command-line interface (CLI), following the instructions carefully to ensure a successful installation is essential. By installing IonCube on your server, you can add an extra layer of security to your PHP applications and protect them against potential threats.

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.

Did you find this article helpful?

 
* Your feedback is too short

Loading...