6.6 Installing IonCube Loader on VPS

1. You need to connect to the server via SSH.

2. If this is Debian, then run apt-get update.

3. Install mc using the commands apt-get install mc for Debian or yum install mc for CentOS.

4. We look at the version of installed php with the command: php -v.

5. Create a folder with the command mkdir /usr/local/ioncube and go into it with the command cd /usr/local/ioncube.

6. Then download the archive of one of the commands.

  • For 32-bit systems:
  1. wget ftp://archive.thehost.com.ua/ioncube/ioncube_loaders_lin_x86.tar.gz
  • For 64-bit systems:
  1. wget ftp://archive.thehost.com.ua/ioncube/ioncube_loaders_lin_x86-64.tar.gz

7. Unpack with the command: tar -zxvf ioncube_loaders_lin_*.tar.gz

8. Create a symbolic link in the /usr/local/ioncube folder to the ioncube_loader file of the corresponding version with the command:

  1. ln ioncube/ioncube_loader_lin_%specify_php_server_version%.so ioncube_loader.so

9. We bind the module to PHP with the command:

  • For Ubuntu, Debian:
  1. echo "zend_extension=/usr/local/ioncube/ioncube_loader.so" > /etc/php5/conf.d/ioncube.ini
  • For CentOS, RockyLinux, AlmaLinux:
  1. echo "zend_extension=/usr/local/ioncube/ioncube_loader.so" > /etc/php.d/ioncube.ini

10. Check the success of the operation with the command php -v A line about ionCubeLoader should appear there:

with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.

11.. We restart the web server so that the new module is loaded into the Apache module:

  • For Ubuntu, Debian:
  1. /etc/init.d/apache2 restart
  • For CentOS, RockyLinux, AlmaLinux:
  1. /etc/init.d/httpd restart