Stratus Guides - Install IonCube Loader

Currently, ionCube Loader for PHP 8 is not installed as default on the Stratus Platform due to performance reasons. The following steps can be applied to install it manually for PHP 8.1

Note: ionCube Loader for PHP 8 installation at the server with Webscale Stratus had not been tested, and we cannot guarantee its stability.

To Install IonCube Loader in your Stratus environment, follow these steps:

  1. cd /srv/

  2. wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

  3. tar -xvf ioncube_loaders_lin_x86-64.tar.gz

  4. cp /usr/local/etc/php/php.ini /srv/

  5. Edit the php.ini file, and in front of [PHP] add the following:

zend_extension=/srv/ioncube/ioncube_loader_lin_8.1.so

Example of how a file needs to look finally:

zend_extension=/srv/ioncube/ioncube_loader_lin_8.1.so
[PHP]
memory_limit = 2048M
max_execution_time = 18000
max_input_vars = 100000
upload_max_filesize = 100M
post_max_size = 100M
date.timezone = UTC
sendmail_path = /usr/sbin/sendmail -t -i
session.gc_maxlifetime = 86400
sys_temp_dir = /tmp
user_ini.filename=""
  1. Edit /srv/.bash_profile file and add the following:

export PHP_INI_SCAN_DIR=/srv/

  1. Test
www@somewhere:~$ php -v | grep -i ioncube
    with the ionCube PHP Loader v12.0.2, Copyright (c) 2002-2022, by ionCube Ltd.
  1. Redeploy the environment, and you should be getting, by default, ionCube loader loaded.

  2. Open up a ticket with Webscale Stratus support, so we can add environment variables for PHP-FPM that are needed.


Last modified January 1, 0001