ionCube is very useful on PHP that can helps encoded and secured PHP files requires a file called the ionCube Loader to be installed on the web server and configure in your PHP 7.4. We have few steps to install and configure ionCube in your Linux machine below,

Enter into /tmp location and download the TAR.GZ file using wget command,

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


Extract the ionCube package and enter in the ioncube directory, make sure that the *.so files are availble with versions

tar xfz ioncube_loaders_lin_x86-64.tar.gz 

cd ioncube/ 


Go to the php modules directory and copy the specific ioncube_loader with version which can support in your PHP version, this post can walk through you the PHP version 7.4

cd /usr/lib64/php/modules 

cp -rf /tmp/ioncube/ioncube_loader_lin_7.4* . 


Give executable permission if the module is not getting in php

chmod +x ioncube_loader_lin_7.4* 


Restart the webserver,

If you are using Ubuntu operating system use the command below,

NGINX:
 
1
systemct restart nginx.service

Apache:
 
1
systemct restart apache2.service

If you are using CentOS operating system use the command below,

NGINX:
 
1
systemct restart nginx.service

Apache:
 
1
systemct restart httpd.service


Testing PHP / Getting Details About Your PHP Installation, create a info.php file and use the single line code,

vim /var/www/html/info.php 


Open your browser and hit the URL as below, 
 
http://localhost/info.php