IonCube Loaders – PHP 7.4
- Download the appropriate IonCube loaders for your PHP version (7.4) and architecture (32-bit or 64-bit) from the official IonCube website.
- Extract the downloaded file to a temporary directory on your server.
- Copy the ioncube_loader_lin_7.4.so file to your PHP extension directory. The location of the extension directory can vary depending on your server configuration. You can find the path to the extension directory by running the following command in the terminal:
php -i | grep extension_dir
- Edit your php.ini file and add the following line at the end:
zend_extension=/path/to/ioncube/ioncube_loader_lin_7.4.so
Replace “/path/to/ioncube/” with the actual path to the IonCube loader directory on your server.
- Save and close the php.ini file.
- Restart your web server for the changes to take effect.
- To add support for CLI, create a new file called 00-ioncube-loader.ini in the /etc/php/7.4/cli/conf.d/ directory with the following contents:
zend_extension=/path/to/ioncube/ioncube_loader_lin_7.4.so
Again, replace “/path/to/ioncube/” with the actual path to the IonCube loader directory on your server.
- Save and close the file.
- To add support for PFM, create a new file called 00-ioncube-loader.ini in the /etc/php/7.4/fpm/conf.d/ directory with the same contents as in step 7.
- Save and close the file.
- Restart the PHP-FPM service for the changes to take effect:
sudo service php7.4-fpm restart
Once you’ve completed these steps, IonCube loaders should be installed and enabled for both web requests and command-line scripts. You can test the installation by running a script that requires IonCube loaders. If it runs without errors, then IonCube loaders are working correctly.