Install Ioncube Loader in WordOps PHP 7x and PHP 8.x
Ioncube Loader is a software that allows you to run code that is packaged with Ioncube Encoder. Ioncube Encoder is a tool that encrypts PHP code to protect it from unauthorized copying.
In this article, we will learn how to install Ioncube Loader in WordOps, a hosting service that supports PHP 7x and PHP 8.x.
Requirements
To install Ioncube Loader in WordOps, you will need:
- A WordOps account
- A hosting plan that supports PHP 7x or PHP 8.x
Step 1: Download the IonCube installation package
cd /usr/local
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xzf ioncube_loaders_lin_x86-64.tar.gz && rm -f ioncube_loaders_lin_x86-64.tar.gz
Step 2: Enter the necessary information into the configuration file
PHP 7.x
I am only describing one command, please replace version 7.4 in the command if other versions apply
echo 'zend_extension = "/usr/local/ioncube/ioncube_loader_lin_7.4.so"' | sudo tee -a /etc/php/7.4/cli/php.ini
echo 'zend_extension = "/usr/local/ioncube/ioncube_loader_lin_7.4.so"' | sudo tee -a /etc/php/7.4/fpm/php.ini
PHP 8.1
echo 'zend_extension = "/usr/local/ioncube/ioncube_loader_lin_8.1.so"' | sudo tee -a /etc/php/8.1/cli/php.ini
echo 'zend_extension = "/usr/local/ioncube/ioncube_loader_lin_8.1.so"' | sudo tee -a /etc/php/8.1/fpm/php.ini
PHP 8.2
echo 'zend_extension = "/usr/local/ioncube/ioncube_loader_lin_8.2.so"' | sudo tee -a /etc/php/8.2/cli/php.ini
echo 'zend_extension = "/usr/local/ioncube/ioncube_loader_lin_8.1.so"' | sudo tee -a /etc/php/8.2/fpm/php.ini
Step 3: Reload WordOps and check
wo stack reload
Then you can check with the command php -v
Or use the command php -m | grep ionCube
If IonCube has been successfully installed and activated, the PHP source code encoded with IonCube should be able to run on the web server.
Trả lời