Hi @khavich,
Here is a small guide to help you out:
SSH to your droplet and initial configuration
First you need to ssh to your droplet like
ssh root@Dropletip
Once you are in, perform some updates like
yum update
Download Ioncube loader
Once your system is up to date it’s time to download the IonCube Loader Itself:
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
Now unpack the tar archive
tar xfz ioncube_loaders_lin_x86-64.tar.gz
The ionCube Loaders for all PHP versions will be extracted in a new ‘ioncube’ directory.
Determine the PHP version and configuration
php -v
Let’s say you have a PHP version 7.2 installed on your server, so we will need the matching ionCube loader.
List the content of the ‘ioncube’ directory to find the necessary file
ls ioncube
And find the following files
ioncube_loader_lin_7.2_ts.so and ioncube_loader_lin_7.2.so
We will use the ‘ioncubeloaderlin_7.2.so’ file because it matches our PHP version. If you have a different version of PHP installed on your server you will have to use the appropriate file.
To find out the location of the extension directory, run the following command
php -i | grep extension_dir
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
Please note the path might vary to your system!
Copy the ‘ioncubeloaderlin_7.2.so’ ionCube loader to the extension directory
cp ioncube/ioncube_loader_lin_7.2.so /usr/lib64/php/modules
Now, open the PHP configuration file and add the following line
nano /path/to/your/php.ini
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.2.so
** Web Server restart**
Save the configuration file and restart the Apache/Nginx web server for the changes to take effect.
Verify ionCube Loader installation
You can check if ionCube Loader is successfully enabled using the following command
php -v
Regards,
Kalin