Knowledgebase

How to install the ionCube loader for alt-php?

To install the ionCube loader for alt-php, follow these steps:

  1. Download the ionCube Loader:

    Visit the ionCube website and download the appropriate loader for your PHP version and architecture. Make sure to choose the loader that is compatible with the alt-php version you are using.

  2. Upload the Loader Files:

    Upload the ionCube loader files to your server. You can use an FTP client or a file manager provided by your hosting provider.

  3. Extract the Files (if necessary):

    If the loader is downloaded as a compressed archive, extract the files.

  4. Determine PHP Configuration Files:

    Identify the php.ini file(s) associated with the alt-php version you're using. There may be different php.ini files for each PHP version.

    • Common locations for php.ini files:
      • /opt/alt/phpXX/etc/php.ini (Replace XX with the PHP version number)
  5. Edit the php.ini File:

    Add the following line to your php.ini file to enable the ionCube loader:

    javascript

 

  • zend_extension = /path/to/ioncube/ioncube_loader_lin_X.Y.so
    • Replace /path/to/ioncube/ioncube_loader_lin_X.Y.so with the actual path to the ionCube loader file you uploaded. Make sure to use the correct version (X.Y) for your system.
  • Restart Apache or LiteSpeed:

    After making changes to the php.ini file, you'll need to restart the web server to apply the changes.

    • For Apache:

      bash
  • systemctl restart httpd
  • For LiteSpeed:

    bash
    • systemctl restart lsws
  • Verify Installation:

    Create a PHP file (e.g., phpinfo.php) with the following content:

    php

 

  1. <?php phpinfo(); ?>

    Access this file through a web browser, and search for "ionCube" in the resulting page. You should see information indicating that ionCube is enabled.

    Note: For security reasons, it's recommended to remove or restrict access to the phpinfo.php file after you've verified the ionCube loader installation.

Remember to replace placeholders like /path/to/ioncube/ioncube_loader_lin_X.Y.so with the actual paths and filenames on your system. If you encounter any issues, double-check the paths and ensure that you're using the correct version of the ionCube loader for your PHP version.

  • 0 Users Found This Useful
Was this answer helpful?