ionCube gives developers tools to protect software written in the PHP programming language from being viewed, edited, and ran on unlicensed computers. The tools use a technique of compiling the bytecode prior to encoding so that the source code is eliminated, and runtime overheads are reduced.
A PHP extension called the ionCube Loader handles the reading and execution of encoded files at runtime. This extension is installed on all of our shared hosting platforms but may need to be installed separately on VPS and Dedicated servers.
Here we cover the steps to install the ionCube Loader PHP extension either through WHM or via command line.
Related Articles
Provision EasyApache 4 Changes
How to SSH into VPS or Dedicated Servers
Install ionCube in WHM
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- Log into Root WHM
- Navigate to Software>EasyApache 4
- Click the Customize button in the Currently Installed Packages section
- Select PHP Extensions
- Type ioncube into the search box
- Click the toggle button to the right of the version(s) you wish to install so that it turns blue and the word Install appears
IMPORTANT: ionCube does not offer support for PHP 8.0 or PHP 8.2, meaning the option to install ionCube for these PHP versions will not be available. - Select Review
- Scroll to the bottom of the page and click on the Provision button
- Wait for the provisioning process to complete
Install ionCube via Command Line
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
NOTE: This is an alternative to the above solution and is not required if you've already completed the previous steps.
- Access the server via SSH as the root user or using the Terminal in your Root WHM
- Run the following command to search for the specific package to install
yum search ioncube
- Locate the appropriate package based on the PHP version your site is using and the version of ionCube you wish to install
IMPORTANT: ionCube does not offer support for PHP 8.0 or PHP 8.2 meaning the option to install ionCube for these PHP versions will not be available. - Run the following command to install the package
yum -y install package_name
REPLACE: "package_name" with the name of the package determined in the previous step. For example:
yum -y install ea-php74-php-ioncube11.x86_64
- Wait for the installation to complete
Comments
0 comments
Article is closed for comments.